|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.web.bindery.requestfactory.shared.Receiver<V>
V
- value typepublic abstract class Receiver<V>
Callback object for Request.fire(Receiver)
and
RequestContext.fire(Receiver)
.
Constructor Summary | |
---|---|
Receiver()
|
Method Summary | |
---|---|
void |
onConstraintViolation(java.util.Set<ConstraintViolation<?>> violations)
Called if an object sent to the server could not be validated. |
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(java.util.Set<Violation> errors)
Deprecated. Use onConstraintViolation(Set) instead |
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 V@Deprecated public void onViolation(java.util.Set<Violation> errors)
onConstraintViolation(Set)
instead
onFailure(ServerFailure)
if errors
is not empty.
errors
- a Set of Violation
instancespublic void onConstraintViolation(java.util.Set<ConstraintViolation<?>> violations)
onViolation(Set)
, converting the
ConstraintViolation
objects to the deprecated Violation
type.
violations
- a Set of ConstraintViolation
instances
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |