com.google.api.client.googleapis.json
Class GoogleJsonRpcHttpTransport.Builder

java.lang.Object
  extended by com.google.api.client.googleapis.json.GoogleJsonRpcHttpTransport.Builder
Enclosing class:
GoogleJsonRpcHttpTransport

public static class GoogleJsonRpcHttpTransport.Builder
extends Object

GoogleJsonRpcHttpTransport Builder.

Implementation is not thread safe.

Since:
1.9

Constructor Summary
GoogleJsonRpcHttpTransport.Builder(HttpTransport httpTransport, JsonFactory jsonFactory)
           
 
Method Summary
protected  GoogleJsonRpcHttpTransport build()
          Returns a new GoogleJsonRpcHttpTransport instance.
 String getAccept()
          Returns the Accept header used for requests.
 String getContentType()
          Returns the Content type header used for requests.
 HttpTransport getHttpTransport()
          Returns the HTTP transport used for building requests.
 JsonFactory getJsonFactory()
          Returns the JSON factory used for building requests.
 GenericUrl getRpcServerUrl()
          Returns the RPC server.
protected  GoogleJsonRpcHttpTransport.Builder setAccept(String accept)
          Sets the Accept header to use for requests.
protected  GoogleJsonRpcHttpTransport.Builder setContentType(String contentType)
          Sets the Content type header to use for requests.
protected  GoogleJsonRpcHttpTransport.Builder setRpcServerUrl(GenericUrl rpcServerUrl)
          Sets the RPC server URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoogleJsonRpcHttpTransport.Builder

public GoogleJsonRpcHttpTransport.Builder(HttpTransport httpTransport,
                                          JsonFactory jsonFactory)
Parameters:
httpTransport - HTTP transport required for building requests.
jsonFactory - JSON factory to use for building requests.
Method Detail

setRpcServerUrl

protected GoogleJsonRpcHttpTransport.Builder setRpcServerUrl(GenericUrl rpcServerUrl)
Sets the RPC server URL.

Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.

Parameters:
rpcServerUrl - RPC server URL.

setContentType

protected GoogleJsonRpcHttpTransport.Builder setContentType(String contentType)
Sets the Content type header to use for requests. By default this is "application/json-rpc".

Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.

Parameters:
contentType - Content type header to use for requests.

setAccept

protected GoogleJsonRpcHttpTransport.Builder setAccept(String accept)
Sets the Accept header to use for requests. By default this is "application/json-rpc" .

Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.

Parameters:
accept - Accept header to use for requests.

build

protected GoogleJsonRpcHttpTransport build()
Returns a new GoogleJsonRpcHttpTransport instance.

Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.


getHttpTransport

public final HttpTransport getHttpTransport()
Returns the HTTP transport used for building requests.


getJsonFactory

public final JsonFactory getJsonFactory()
Returns the JSON factory used for building requests.


getRpcServerUrl

public final GenericUrl getRpcServerUrl()
Returns the RPC server.


getContentType

public final String getContentType()
Returns the Content type header used for requests.


getAccept

public final String getAccept()
Returns the Accept header used for requests.



Copyright © 2010-2012 Google. All Rights Reserved.