public interface RequestCallback
<module> <!-- other inherited modules, such as com.google.gwt.user.User --> <inherits name="com.google.gwt.http.HTTP"/> <!-- additional module settings --> </module>
Requestcompletes 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 event
response- an instance of the
void onError(Request request, java.lang.Throwable exception)
Requestdoes not complete normally. A
RequestTimeoutExceptionis 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 generated
exception- the error that was encountered