public static class GoogleJsonRpcHttpTransport.Builder extends Object
GoogleJsonRpcHttpTransport
Builder.
Implementation is not thread safe.
Constructor and Description |
---|
GoogleJsonRpcHttpTransport.Builder(com.google.api.client.http.HttpTransport httpTransport,
com.google.api.client.json.JsonFactory jsonFactory) |
Modifier and Type | Method and Description |
---|---|
protected GoogleJsonRpcHttpTransport |
build()
Returns a new
GoogleJsonRpcHttpTransport instance. |
String |
getAccept()
Returns the Accept header used for requests.
|
com.google.api.client.http.HttpTransport |
getHttpTransport()
Returns the HTTP transport used for building requests.
|
com.google.api.client.json.JsonFactory |
getJsonFactory()
Returns the JSON factory used for building requests.
|
String |
getMimeType()
Returns the MIME type used for requests.
|
com.google.api.client.http.GenericUrl |
getRpcServerUrl()
Returns the RPC server.
|
protected GoogleJsonRpcHttpTransport.Builder |
setAccept(String accept)
Sets the Accept header to use for requests.
|
protected GoogleJsonRpcHttpTransport.Builder |
setMimeType(String mimeType)
Sets the MIME type of the Content type header to use for requests.
|
protected GoogleJsonRpcHttpTransport.Builder |
setRpcServerUrl(com.google.api.client.http.GenericUrl rpcServerUrl)
Sets the RPC server URL.
|
public GoogleJsonRpcHttpTransport.Builder(com.google.api.client.http.HttpTransport httpTransport, com.google.api.client.json.JsonFactory jsonFactory)
httpTransport
- HTTP transport required for building requests.jsonFactory
- JSON factory to use for building requests.protected GoogleJsonRpcHttpTransport.Builder setRpcServerUrl(com.google.api.client.http.GenericUrl rpcServerUrl)
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
rpcServerUrl
- RPC server URL.protected GoogleJsonRpcHttpTransport.Builder setMimeType(String mimeType)
"application/json-rpc"
.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
mimeType
- MIME type to use for requests.protected GoogleJsonRpcHttpTransport.Builder setAccept(String accept)
"application/json-rpc"
.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
accept
- Accept header to use for requests.protected GoogleJsonRpcHttpTransport build()
GoogleJsonRpcHttpTransport
instance.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public final com.google.api.client.http.HttpTransport getHttpTransport()
public final com.google.api.client.json.JsonFactory getJsonFactory()
public final com.google.api.client.http.GenericUrl getRpcServerUrl()
public final String getMimeType()
public final String getAccept()
Copyright © 2010-2012 Google. All Rights Reserved.