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

    Modifier and Type
    Method
    Description
    void
    onFail(com.google.gwt.xhr.client.XMLHttpRequest xhr, Exception exception)
    Called when the request fails.
    void
    onSuccess(com.google.gwt.xhr.client.XMLHttpRequest xhr)
    Called when the request succeeds.
  • Method Details

    • onFail

      void onFail(com.google.gwt.xhr.client.XMLHttpRequest xhr, Exception exception)
      Called when the request fails.
      Parameters:
      xhr - the request object
      exception - 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