|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.http.client.Request
public class Request
An HTTP request that is waiting for a response. Requests can be queried for their pending status or they can be canceled.
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>
Nested Class Summary | |
---|---|
(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. |
Constructor Summary | |
---|---|
protected |
Request()
Only used for building a FailedRequest . |
(package private) |
Request(XMLHttpRequest xmlHttpRequest,
int timeoutMillis,
RequestCallback callback)
Constructs an instance of the Request object. |
Method Summary | |
---|---|
void |
cancel()
Cancels a pending request. |
(package private) void |
fireOnResponseReceived(RequestCallback callback)
|
boolean |
isPending()
Returns true if this request is waiting for a response. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 notification
java.lang.IllegalArgumentException
- if timeoutMillis < 0
java.lang.NullPointerException
- if xmlHttpRequest, or callback are nullMethod Detail |
---|
public void cancel()
public boolean isPending()
void fireOnResponseReceived(RequestCallback callback)
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |