|
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.jsonp.client.JsonpRequest<T>
T
- the type of the response object.public class JsonpRequest<T>
A JSONP request that is waiting for a response. The request can be canceled.
Constructor Summary | |
---|---|
JsonpRequest(AsyncCallback<T> callback,
int timeout,
boolean expectInteger,
java.lang.String callbackParam,
java.lang.String failureCallbackParam)
Create a new JSONP request. |
|
JsonpRequest(AsyncCallback<T> callback,
int timeout,
boolean expectInteger,
java.lang.String callbackParam,
java.lang.String failureCallbackParam,
java.lang.String id)
Create a new JSONP request with a hardcoded id. |
Method Summary | |
---|---|
void |
cancel()
Cancels a pending request. |
AsyncCallback<T> |
getCallback()
|
(package private) java.lang.String |
getCallbackId()
|
int |
getTimeout()
|
(package private) void |
send(java.lang.String baseUri)
Sends a request using the JSONP mechanism. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
JsonpRequest(AsyncCallback<T> callback, int timeout, boolean expectInteger, java.lang.String callbackParam, java.lang.String failureCallbackParam)
callback
- The callback instance to notify when the response comes
backtimeout
- Time in ms after which a TimeoutException
will be
thrownexpectInteger
- Should be true if T is Integer
, false
otherwisecallbackParam
- Name of the url param of the callback function namefailureCallbackParam
- Name of the url param containing the
failure callback function name, or null for no failure callbackJsonpRequest(AsyncCallback<T> callback, int timeout, boolean expectInteger, java.lang.String callbackParam, java.lang.String failureCallbackParam, java.lang.String id)
callback
- The callback instance to notify when the response comes
backtimeout
- Time in ms after which a TimeoutException
will be
thrownexpectInteger
- Should be true if T is Integer
, false
otherwisecallbackParam
- Name of the url param of the callback function namefailureCallbackParam
- Name of the url param containing the
failure callback function name, or null for no failure callbackid
- unique id for the resource that is being fetchedMethod Detail |
---|
public void cancel()
public AsyncCallback<T> getCallback()
public int getTimeout()
public java.lang.String toString()
toString
in class java.lang.Object
java.lang.String getCallbackId()
void send(java.lang.String baseUri)
baseUri
- To be sent to the server.
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |