public class XhrConnection.XhrResponseHandler extends Object implements Xhr.Callback
MessageHandler or failures to the appropriate method in
ConnectionStateHandler.| Constructor and Description |
|---|
XhrResponseHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
onFail(com.google.gwt.xhr.client.XMLHttpRequest xhr,
Exception e)
Called when the request fails.
|
void |
onSuccess(com.google.gwt.xhr.client.XMLHttpRequest xhr)
Called when the request succeeds.
|
void |
setPayload(elemental.json.JsonObject payload)
Sets the payload which was sent to the server.
|
public void setPayload(elemental.json.JsonObject payload)
payload - the payload which was sent to the serverpublic void onFail(com.google.gwt.xhr.client.XMLHttpRequest xhr,
Exception e)
Xhr.CallbackonFail in interface Xhr.Callbackxhr - the request objecte - the exception which cause the request to fail, or null if
not availablepublic void onSuccess(com.google.gwt.xhr.client.XMLHttpRequest xhr)
Xhr.CallbackonSuccess in interface Xhr.Callbackxhr - the request objectCopyright © 2000–2018 Vaadin Ltd. All rights reserved.