|
GWT 2.3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.requestfactory.shared.Receiver<V>
V
- value type
@Deprecated public abstract class Receiver<V>
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 |
---|
public Receiver()
Method Detail |
---|
public void onFailure(ServerFailure error)
ServerFailure.isFatal()
, and throws a runtime exception with the
failure object's error message if it is true.
error
- a ServerFailure
instancepublic abstract void onSuccess(V response)
response
- a response of type Vpublic void onViolation(java.util.Set<Violation> errors)
onFailure(ServerFailure)
if errors
is not empty.
errors
- a Set of Violation
instances
|
GWT 2.3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |