Interface Xhr.Callback
-
- All Known Implementing Classes:
XhrConnection.XhrResponseHandler
- Enclosing class:
- Xhr
public static interface Xhr.CallbackNotifies when an XHR successfully completes, or errors out.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonFail(com.google.gwt.xhr.client.XMLHttpRequest xhr, Exception exception)Called when the request fails.voidonSuccess(com.google.gwt.xhr.client.XMLHttpRequest xhr)Called when the request succeeds.
-
-
-
Method Detail
-
onFail
void onFail(com.google.gwt.xhr.client.XMLHttpRequest xhr, Exception exception)Called when the request fails.- Parameters:
xhr- the request objectexception- the exception which cause the request to fail, or null if not available
-
onSuccess
void onSuccess(com.google.gwt.xhr.client.XMLHttpRequest xhr)
Called when the request succeeds.- Parameters:
xhr- the request object
-
-