R
- Th result typepublic interface RestCallback<R> extends AsyncCallback<R>
AsyncCallback
you can use if you need to retrieve the Response
returned by the HTTP call.setResponse(Response)
Modifier and Type | Method and Description |
---|---|
void |
setResponse(Response response)
The
Response received from the server. |
onFailure, onSuccess
void setResponse(Response response)
Response
received from the server. If the request did not reach the server, this method will not be
called. This method is called before AsyncCallback.onSuccess(Object)
and AsyncCallback.onFailure(Throwable)
.response
- The Response
received from the server.Copyright © 2010-2014 ArcBees. All Rights Reserved.