public abstract class

Receiver

extends Object
java.lang.Object
   ↳ com.google.gwt.requestfactory.shared.Receiver<V>

Class Overview

Callback object for fire(Receiver) and fire(Receiver).

Summary

Public Constructors
Receiver()
Public Methods
void onFailure(ServerFailure error)
Receives general failure notifications.
abstract void onSuccess(V response)
Called when a Request has been successfully executed on the server.
void onViolation(Set<Violation> errors)
Called if an object sent to the server could not be validated.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Receiver ()

Public Methods

public void onFailure (ServerFailure error)

Receives general failure notifications. The default implementation looks at isFatal(), and throws a runtime exception with the failure object's error message if it is true.

Parameters
error a ServerFailure instance

public abstract void onSuccess (V response)

Called when a Request has been successfully executed on the server.

Parameters
response a response of type V

public void onViolation (Set<Violation> errors)

Called if an object sent to the server could not be validated. The default implementation calls onFailure(ServerFailure) if errors is not empty.

Parameters
errors a Set of Violation instances