| java.lang.Object com.google.gwt.http.client.Request
Request | public class Request (Code) | | An HTTP request that is waiting for a response. Requests can be queried for
their pending status or they can be canceled.
Required Module
Modules that use this class should inherit
com.google.gwt.http.HTTP .
|
Method Summary | |
public void | cancel() Cancels a pending request. | public boolean | isPending() Returns true if this request is waiting for a response. |
Request | Request(JavaScriptObject xmlHttpRequest, int timeoutMillis, RequestCallback callback)(Code) | | Constructs an instance of the Request object.
Parameters: xmlHttpRequest - JavaScript XmlHttpRequest object instance Parameters: timeoutMillis - number of milliseconds to wait for a response Parameters: callback - callback interface to use for notification throws: IllegalArgumentException - if timeoutMillis < 0 throws: NullPointerException - if xmlHttpRequest, or callback are null |
cancel | public void cancel()(Code) | | Cancels a pending request. If the request has already been canceled or if
it has timed out no action is taken.
|
isPending | public boolean isPending()(Code) | | Returns true if this request is waiting for a response.
true if this request is waiting for a response |
|
|