|
|||||||||
| 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 |
setOAuthRequestToken(java.lang.String requestToken)
A service provider may be able to automatically provision a gadget with a request token that is preapproved for access to a resource. |
RequestOptions |
setOAuthRequestTokenSecret(java.lang.String requestTokenSecret)
The secret corresponding to a preapproved request token. |
RequestOptions |
setOAuthServiceName(java.lang.String serviceName)
The nickname the gadget uses to refer to the OAuth |
RequestOptions |
setOAuthTokenName(java.lang.String tokenName)
The nickname the gadget uses to refer to an OAuth token granting access to a particular resources. |
RequestOptions |
setOAuthUseToken(OAuthUseTokenOptions useTokenOption)
Sets when to use OAuth tokens for authentication. |
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 setOAuthRequestToken(java.lang.String requestToken)
requestToken - the request token to use.
RequestOptions for convenience in using
the builder pattern.public final RequestOptions setOAuthRequestTokenSecret(java.lang.String requestTokenSecret)
requestTokenSecret - the corresponding secret to the request token.
RequestOptions for convenience in using
the builder pattern.public final RequestOptions setOAuthServiceName(java.lang.String serviceName)
serviceName - the of the service configuration to use.
RequestOptions for convenience in using
the builder pattern.public final RequestOptions setOAuthTokenName(java.lang.String tokenName)
tokenName - the of the token to use.
RequestOptions for convenience in using
the builder pattern.public final RequestOptions setOAuthUseToken(OAuthUseTokenOptions useTokenOption)
useTokenOption - when to use OAuth tokens for authentication.
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 | ||||||||