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()
          Deprecated. (scheduled to be removed in 1.11) Renamed to getMimeType()
 HttpTransport getHttpTransport()
          Returns the HTTP transport used for building requests.
 JsonFactory getJsonFactory()
          Returns the JSON factory used for building requests.
 String getMimeType()
          Returns the MIME type used for 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)
          Deprecated. (scheduled to be removed in 1.11) Renamed to setMimeType(String).
protected  GoogleJsonRpcHttpTransport.Builder setMimeType(String mimeType)
          Sets the MIME type of 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

@Deprecated
protected GoogleJsonRpcHttpTransport.Builder setContentType(String contentType)
Deprecated. (scheduled to be removed in 1.11) Renamed to setMimeType(String).

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.

setMimeType

protected GoogleJsonRpcHttpTransport.Builder setMimeType(String mimeType)
Sets the MIME type of 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:
mimeType - MIME type to use for requests.
Since:
1.10

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

@Deprecated
public final String getContentType()
Deprecated. (scheduled to be removed in 1.11) Renamed to getMimeType()

Returns the Content type header used for requests.


getMimeType

public final String getMimeType()
Returns the MIME type used for requests.

Since:
1.10

getAccept

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



Copyright © 2010-2012 Google. All Rights Reserved.