GWT 2.3.0

com.google.gwt.requestfactory.shared
Class Receiver<V>

java.lang.Object
  extended by com.google.gwt.requestfactory.shared.Receiver<V>
Type Parameters:
V - value type

Deprecated.

@Deprecated
public abstract class Receiver<V>
extends java.lang.Object

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

RequestFactory has moved to com.google.web.bindery.requestfactory. This package will be removed in a future version of GWT.


Constructor Summary
Receiver()
          Deprecated.  
 
Method Summary
 void onFailure(ServerFailure error)
          Deprecated. Receives general failure notifications.
abstract  void onSuccess(V response)
          Deprecated. Called when a Request has been successfully executed on the server.
 void onViolation(java.util.Set<Violation> errors)
          Deprecated. Called if an object sent to the server could not be validated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Receiver

public Receiver()
Deprecated. 
Method Detail

onFailure

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

Parameters:
error - a ServerFailure instance

onSuccess

public abstract void onSuccess(V response)
Deprecated. 
Called when a Request has been successfully executed on the server.

Parameters:
response - a response of type V

onViolation

public void onViolation(java.util.Set<Violation> errors)
Deprecated. 
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

GWT 2.3.0