com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient instead.@Deprecated public class GoogleClient extends com.google.api.client.http.json.JsonHttpClient
| Modifier and Type | Class and Description |
|---|---|
static class |
GoogleClient.Builder
Deprecated.
(scheduled to be removed in 1.14) Use
AbstractGoogleClient.Builder
instead. |
| Modifier | Constructor and Description |
|---|---|
|
GoogleClient(com.google.api.client.http.HttpTransport transport,
com.google.api.client.json.JsonFactory jsonFactory,
String baseUrl)
Deprecated.
Constructor with required parameters.
|
|
GoogleClient(com.google.api.client.http.HttpTransport transport,
com.google.api.client.json.JsonFactory jsonFactory,
String rootUrl,
String servicePath,
com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
Deprecated.
Constructor with required parameters.
|
protected |
GoogleClient(com.google.api.client.http.HttpTransport transport,
com.google.api.client.http.json.JsonHttpRequestInitializer jsonHttpRequestInitializer,
com.google.api.client.http.HttpRequestInitializer httpRequestInitializer,
com.google.api.client.json.JsonFactory jsonFactory,
com.google.api.client.json.JsonObjectParser jsonObjectParser,
String baseUrl,
String applicationName)
Deprecated.
Construct the
GoogleClient. |
protected |
GoogleClient(com.google.api.client.http.HttpTransport transport,
com.google.api.client.http.json.JsonHttpRequestInitializer jsonHttpRequestInitializer,
com.google.api.client.http.HttpRequestInitializer httpRequestInitializer,
com.google.api.client.json.JsonFactory jsonFactory,
com.google.api.client.json.JsonObjectParser jsonObjectParser,
String rootUrl,
String servicePath,
String applicationName)
Deprecated.
Construct the
GoogleClient. |
protected |
GoogleClient(com.google.api.client.http.HttpTransport transport,
com.google.api.client.http.json.JsonHttpRequestInitializer jsonHttpRequestInitializer,
com.google.api.client.http.HttpRequestInitializer httpRequestInitializer,
com.google.api.client.json.JsonFactory jsonFactory,
com.google.api.client.json.JsonObjectParser jsonObjectParser,
String rootUrl,
String servicePath,
String applicationName,
boolean suppressPatternChecks)
Deprecated.
Construct the
GoogleClient. |
| Modifier and Type | Method and Description |
|---|---|
BatchRequest |
batch()
Deprecated.
Create an
BatchRequest object from this Google API client instance. |
BatchRequest |
batch(com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
Deprecated.
Create an
BatchRequest object from this Google API client instance. |
protected com.google.api.client.http.HttpRequest |
buildHttpRequest(com.google.api.client.http.HttpMethod method,
com.google.api.client.http.GenericUrl url,
Object body)
Deprecated.
Create an
HttpRequest suitable for use against this service. |
protected com.google.api.client.http.HttpResponse |
executeUnparsed(com.google.api.client.http.HttpMethod method,
com.google.api.client.http.GenericUrl url,
Object body)
Deprecated.
|
protected com.google.api.client.http.HttpResponse |
executeUnparsed(com.google.api.client.http.HttpRequest request)
Deprecated.
|
boolean |
getSuppressPatternChecks()
Deprecated.
Returns whether discovery pattern checks should be suppressed on required parameters.
|
createParser, createSerializer, executeAsInputStream, getApplicationName, getBaseUrl, getJsonFactory, getJsonHttpParser, getJsonHttpRequestInitializer, getJsonObjectParser, getRequestFactory, getRootUrl, getServicePath, initialize, isBaseUrlUsedpublic GoogleClient(com.google.api.client.http.HttpTransport transport,
com.google.api.client.json.JsonFactory jsonFactory,
String baseUrl)
Use GoogleClient.Builder if you need to specify any of the optional parameters.
transport - The transport to use for requestsjsonFactory - A factory for creating JSON parsers and serializersbaseUrl - The base URL of the service. Must end with a "/"public GoogleClient(com.google.api.client.http.HttpTransport transport,
com.google.api.client.json.JsonFactory jsonFactory,
String rootUrl,
String servicePath,
com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
Use GoogleClient.Builder if you need to specify any of the optional parameters.
transport - The transport to use for requestsjsonFactory - A factory for creating JSON parsers and serializersrootUrl - The root URL of the service. Must end with a "/"servicePath - The service path of the service. Must end with a "/" and not begin with a
"/". It is allowed to be an empty string ""httpRequestInitializer - The HTTP request initializer or null for noneprotected GoogleClient(com.google.api.client.http.HttpTransport transport,
com.google.api.client.http.json.JsonHttpRequestInitializer jsonHttpRequestInitializer,
com.google.api.client.http.HttpRequestInitializer httpRequestInitializer,
com.google.api.client.json.JsonFactory jsonFactory,
com.google.api.client.json.JsonObjectParser jsonObjectParser,
String baseUrl,
String applicationName)
GoogleClient.transport - The transport to use for requestsjsonHttpRequestInitializer - The initializer to use when creating an
JsonHttpRequest or null for nonehttpRequestInitializer - The initializer to use when creating an HttpRequest or
null for nonejsonFactory - A factory for creating JSON parsers and serializersjsonObjectParser - JSON parser to use or null if unusedbaseUrl - The base URL of the service. Must end with a "/"applicationName - The application name to be sent in the User-Agent header of requests or
null for noneprotected GoogleClient(com.google.api.client.http.HttpTransport transport,
com.google.api.client.http.json.JsonHttpRequestInitializer jsonHttpRequestInitializer,
com.google.api.client.http.HttpRequestInitializer httpRequestInitializer,
com.google.api.client.json.JsonFactory jsonFactory,
com.google.api.client.json.JsonObjectParser jsonObjectParser,
String rootUrl,
String servicePath,
String applicationName)
GoogleClient.transport - The transport to use for requestsjsonHttpRequestInitializer - The initializer to use when creating an
JsonHttpRequest or null for nonehttpRequestInitializer - The initializer to use when creating an HttpRequest or
null for nonejsonFactory - A factory for creating JSON parsers and serializersjsonObjectParser - JSON parser to use or null if unusedrootUrl - The root URL of the service. Must end with a "/"servicePath - The service path of the service. Must end with a "/" and not begin with a
"/". It is allowed to be an empty string ""applicationName - The application name to be sent in the User-Agent header of requests or
null for noneprotected GoogleClient(com.google.api.client.http.HttpTransport transport,
com.google.api.client.http.json.JsonHttpRequestInitializer jsonHttpRequestInitializer,
com.google.api.client.http.HttpRequestInitializer httpRequestInitializer,
com.google.api.client.json.JsonFactory jsonFactory,
com.google.api.client.json.JsonObjectParser jsonObjectParser,
String rootUrl,
String servicePath,
String applicationName,
boolean suppressPatternChecks)
GoogleClient.transport - The transport to use for requestsjsonHttpRequestInitializer - The initializer to use when creating an
JsonHttpRequest or null for nonehttpRequestInitializer - The initializer to use when creating an HttpRequest or
null for nonejsonFactory - A factory for creating JSON parsers and serializersjsonObjectParser - JSON parser to use or null if unusedrootUrl - The root URL of the service. Must end with a "/"servicePath - The service path of the service. Must end with a "/" and not begin with a
"/". It is allowed to be an empty string ""applicationName - The application name to be sent in the User-Agent header of requests or
null for noneprotected com.google.api.client.http.HttpRequest buildHttpRequest(com.google.api.client.http.HttpMethod method,
com.google.api.client.http.GenericUrl url,
Object body)
throws IOException
HttpRequest suitable for use against this service.buildHttpRequest in class com.google.api.client.http.json.JsonHttpClientmethod - HTTP Method typeurl - The complete URL of the service where requests should be sent. It includes the base
path along with the URI templatebody - A POJO that can be serialized into JSON or null for noneHttpRequestIOExceptionpublic BatchRequest batch()
BatchRequest object from this Google API client instance.
Sample usage:
client.batch()
.queue(...)
.queue(...)
.execute();
public BatchRequest batch(com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
BatchRequest object from this Google API client instance.
Sample usage:
client.batch(httpRequestInitializer)
.queue(...)
.queue(...)
.execute();
httpRequestInitializer - The initializer to use when creating the top-level batch HTTP
request or null for noneprotected com.google.api.client.http.HttpResponse executeUnparsed(com.google.api.client.http.HttpMethod method,
com.google.api.client.http.GenericUrl url,
Object body)
throws IOException
executeUnparsed in class com.google.api.client.http.json.JsonHttpClientIOExceptionprotected com.google.api.client.http.HttpResponse executeUnparsed(com.google.api.client.http.HttpRequest request)
throws IOException
executeUnparsed in class com.google.api.client.http.json.JsonHttpClientIOExceptionpublic final boolean getSuppressPatternChecks()
Copyright © 2010-2013 Google. All Rights Reserved.