|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.api.client.googleapis.json.GoogleJsonRpcHttpTransport.Builder
public static class GoogleJsonRpcHttpTransport.Builder
GoogleJsonRpcHttpTransport
Builder.
Implementation is not thread safe.
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 |
---|
public GoogleJsonRpcHttpTransport.Builder(HttpTransport httpTransport, JsonFactory jsonFactory)
httpTransport
- HTTP transport required for building requests.jsonFactory
- JSON factory to use for building requests.Method Detail |
---|
protected GoogleJsonRpcHttpTransport.Builder setRpcServerUrl(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.@Deprecated protected GoogleJsonRpcHttpTransport.Builder setContentType(String contentType)
setMimeType(String)
.
"application/json-rpc"
.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
contentType
- Content type header to use for requests.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 HttpTransport getHttpTransport()
public final JsonFactory getJsonFactory()
public final GenericUrl getRpcServerUrl()
@Deprecated public final String getContentType()
getMimeType()
public final String getMimeType()
public final String getAccept()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |