public class Request
extends java.lang.Object
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 | Class and Description |
---|---|
(package private) static class |
Request.RequestImpl
Native implementation associated with
Request . |
(package private) static class |
Request.RequestImplIE8And9
Special
Request.RequestImpl for IE8, IE9 to work around some IE specialities. |
Modifier | Constructor and Description |
---|---|
protected |
Request()
Only used for building a
FailedRequest . |
(package private) |
Request(XMLHttpRequest xmlHttpRequest,
int timeoutMillis,
RequestCallback callback)
Constructs an instance of the Request object.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancels a pending request.
|
(package private) void |
fireOnResponseReceived(RequestCallback callback) |
boolean |
isPending()
Returns true if this request is waiting for a response.
|
protected Request()
FailedRequest
.Request(XMLHttpRequest xmlHttpRequest, int timeoutMillis, RequestCallback callback)
xmlHttpRequest
- JavaScript XmlHttpRequest object instancetimeoutMillis
- number of milliseconds to wait for a responsecallback
- callback interface to use for notificationjava.lang.IllegalArgumentException
- if timeoutMillis < 0java.lang.NullPointerException
- if xmlHttpRequest, or callback are nullpublic void cancel()
public boolean isPending()
void fireOnResponseReceived(RequestCallback callback)