Interface Xhr.Callback
- All Known Implementing Classes:
XhrConnection.XhrResponseHandler
- Enclosing class:
Xhr
public static interface Xhr.Callback
Notifies when an XHR successfully completes, or errors out.
-
Method Summary
-
Method Details
-
onFail
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
-