|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.google.gwt.gadgets.client.io.RequestOptions
public class RequestOptions
A class defining request options used with GadgetsIo.makeRequest(java.lang.String, com.google.gwt.gadgets.client.io.ResponseReceivedHandler
methods.
| Constructor Summary | |
|---|---|
protected |
RequestOptions()
|
| Method Summary | |
|---|---|
static RequestOptions |
newInstance()
Returns new instance of RequestOptions. |
RequestOptions |
setAuthorizationType(AuthorizationType authorizationType)
Sets the authorization method. |
RequestOptions |
setContentType(ContentType contentType)
Sets a type of content of the requested resource. |
RequestOptions |
setHeader(java.lang.String key,
java.lang.String value)
Sets HTTP headers to send to the URL. |
RequestOptions |
setMethodType(MethodType methodType)
Sets the HTTP request method. |
RequestOptions |
setPostData(java.lang.String data)
Specifies the data to send to the URL using the POST method; defaults to null. |
RequestOptions |
setRefreshInterval(int interval)
Explicitly sets the lifespan of cached content. |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected RequestOptions()
| Method Detail |
|---|
public static RequestOptions newInstance()
RequestOptions.
RequestOptions.public final RequestOptions setAuthorizationType(AuthorizationType authorizationType)
authorizationType - the authorization method.
RequestOptions for convenience in using
the builder pattern.public final RequestOptions setContentType(ContentType contentType)
contentType - type of content of the requested resource.
RequestOptions for convenience in using
the builder pattern.
public final RequestOptions setHeader(java.lang.String key,
java.lang.String value)
key - Name of the header.value - Value for the header.
RequestOptions for convenience in using
the builder pattern.public final RequestOptions setMethodType(MethodType methodType)
MethodType.GET method. Implementation of
remaining methods is optional.
methodType - the HTTP request method.
RequestOptions for convenience in using
the builder pattern.public final RequestOptions setPostData(java.lang.String data)
data - the data to send.
RequestOptions for convenience in using
the builder pattern.public final RequestOptions setRefreshInterval(int interval)
interval - the lifespan of cached content in seconds.
RequestOptions for convenience in using
the builder pattern.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||