|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface GadgetsIo
Provides access to the gadgets.io APIs provided by the container.
For GadgetsIo implementation, use IoProvider.get().
| Method Summary | |
|---|---|
java.lang.String |
encodeValues(com.google.gwt.core.client.JavaScriptObject jso)
Converts an input object into a URL-encoded data string (key=value&...). |
java.lang.String |
getProxyUrl(java.lang.String url)
Returns a proxy URL that can be used to access a given URL. |
java.lang.String |
getProxyUrl(java.lang.String url,
int refreshIntervalSeconds)
Returns a proxy URL that can be used to access a given URL with a specified refresh interval specified in seconds. |
void |
makeRequest(java.lang.String url,
ResponseReceivedHandler<java.lang.Object> handler)
Makes the HTTP request and invokes the ResponseReceivedHandler.onResponseReceived(ResponseReceivedEvent)
method with the received response. |
void |
makeRequest(java.lang.String url,
ResponseReceivedHandler<java.lang.Object> handler,
RequestOptions options)
Makes the HTTP request and invokes the ResponseReceivedHandler.onResponseReceived(ResponseReceivedEvent)
method with the received response. |
void |
makeRequestAsDom(java.lang.String url,
ResponseReceivedHandler<com.google.gwt.dom.client.ObjectElement> handler)
Makes the HTTP request and invokes the ResponseReceivedHandler.onResponseReceived(ResponseReceivedEvent)
method with the received response. |
void |
makeRequestAsDom(java.lang.String url,
ResponseReceivedHandler<com.google.gwt.dom.client.ObjectElement> handler,
RequestOptions options)
Makes the HTTP request and invokes the ResponseReceivedHandler.onResponseReceived(ResponseReceivedEvent)
method with the received response. |
void |
makeRequestAsJso(java.lang.String url,
ResponseReceivedHandler<? extends com.google.gwt.core.client.JavaScriptObject> handler)
Makes the HTTP request and invokes the ResponseReceivedHandler.onResponseReceived(ResponseReceivedEvent)
method with the received response. |
void |
makeRequestAsJso(java.lang.String url,
ResponseReceivedHandler<? extends com.google.gwt.core.client.JavaScriptObject> handler,
RequestOptions options)
Makes the HTTP request and invokes the ResponseReceivedHandler.onResponseReceived(ResponseReceivedEvent)
method with the received response. |
void |
makeRequestAsText(java.lang.String url,
ResponseReceivedHandler<java.lang.String> handler)
Makes the HTTP request and invokes the ResponseReceivedHandler.onResponseReceived(ResponseReceivedEvent)
method with the received response. |
void |
makeRequestAsText(java.lang.String url,
ResponseReceivedHandler<java.lang.String> handler,
RequestOptions options)
Makes the HTTP request and invokes the ResponseReceivedHandler.onResponseReceived(ResponseReceivedEvent)
method with the received response. |
| Method Detail |
|---|
java.lang.String encodeValues(com.google.gwt.core.client.JavaScriptObject jso)
RequestOptions.setPostData(String) for creating POST requests.
jso - JavaScript object to convert
java.lang.String getProxyUrl(java.lang.String url)
java.lang.String getProxyUrl(java.lang.String url,
int refreshIntervalSeconds)
void makeRequest(java.lang.String url,
ResponseReceivedHandler<java.lang.Object> handler)
ResponseReceivedHandler.onResponseReceived(ResponseReceivedEvent)
method with the received response. The fetched content is cached on the
Gadget Container.
url - the URL for the requesthandler - the ResponseReceivedHandler instance to handle the
response
void makeRequest(java.lang.String url,
ResponseReceivedHandler<java.lang.Object> handler,
RequestOptions options)
ResponseReceivedHandler.onResponseReceived(ResponseReceivedEvent)
method with the received response. The fetched content is cached on the
Gadget Container.
url - the URL for the requesthandler - the ResponseReceivedHandler instance to handle the
responseoptions - options for this request
void makeRequestAsDom(java.lang.String url,
ResponseReceivedHandler<com.google.gwt.dom.client.ObjectElement> handler)
ResponseReceivedHandler.onResponseReceived(ResponseReceivedEvent)
method with the received response. This method can be used for fetching XML
data, which is parsed into a DOM document. The fetched content is cached on
the Gadget Container.
url - the URL for the requesthandler - the ResponseReceivedHandler instance to handle the
response
void makeRequestAsDom(java.lang.String url,
ResponseReceivedHandler<com.google.gwt.dom.client.ObjectElement> handler,
RequestOptions options)
ResponseReceivedHandler.onResponseReceived(ResponseReceivedEvent)
method with the received response. This method can be used for fetching XML
data, which is parsed into a DOM document. The fetched content is cached on
the Gadget Container.
url - the URL for the requesthandler - the ResponseReceivedHandler instance to handle the
responseoptions - options for this request
void makeRequestAsJso(java.lang.String url,
ResponseReceivedHandler<? extends com.google.gwt.core.client.JavaScriptObject> handler)
ResponseReceivedHandler.onResponseReceived(ResponseReceivedEvent)
method with the received response. This method can be used for fetching
JSON data, which is parsed into a JavaScriptObject instance or it's
subclass. The fetched content is cached on the Gadget Container.
url - the URL for the requesthandler - the ResponseReceivedHandler instance to handle the
response
void makeRequestAsJso(java.lang.String url,
ResponseReceivedHandler<? extends com.google.gwt.core.client.JavaScriptObject> handler,
RequestOptions options)
ResponseReceivedHandler.onResponseReceived(ResponseReceivedEvent)
method with the received response. This method can be used for fetching
JSON data, which is parsed into a JavaScriptObject instance or it's
subclass. The fetched content is cached on the Gadget Container.
url - the URL for the requesthandler - the ResponseReceivedHandler instance to handle the
responseoptions - options for this request
void makeRequestAsText(java.lang.String url,
ResponseReceivedHandler<java.lang.String> handler)
ResponseReceivedHandler.onResponseReceived(ResponseReceivedEvent)
method with the received response. This method can be used for fetching any
text data. The fetched content is cached on the Gadget Container.
url - the URL for the requesthandler - the ResponseReceivedHandler instance to handle the
response
void makeRequestAsText(java.lang.String url,
ResponseReceivedHandler<java.lang.String> handler,
RequestOptions options)
ResponseReceivedHandler.onResponseReceived(ResponseReceivedEvent)
method with the received response. This method can be used for fetching any
text data. The fetched content is cached on the Gadget Container.
url - the URL for the requesthandler - the ResponseReceivedHandler instance to handle the
responseoptions - options for this request
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||