public interface RequestCallback
Request
.
com.google.gwt.http.HTTP
.
<module> <!-- other inherited modules, such as com.google.gwt.user.User --> <inherits name="com.google.gwt.http.HTTP"/> <!-- additional module settings --> </module>
Modifier and Type | Method and Description |
---|---|
void |
onError(Request request,
java.lang.Throwable exception)
Called when a
Request does not complete
normally. |
void |
onResponseReceived(Request request,
Response response)
Called when a pending
Request completes
normally. |
void onResponseReceived(Request request, Response response)
Request
completes
normally. Note this method is called even when the status code of the
HTTP response is not "OK", 200.request
- the object that generated this eventresponse
- an instance of the
Response
classvoid onError(Request request, java.lang.Throwable exception)
Request
does not complete
normally. A RequestTimeoutException
is
one example of the type of error that a request may encounter.request
- the request object which has experienced the error
condition, may be null if the request was never generatedexception
- the error that was encountered