com.google.api.client.googleapis.services
Class GoogleClient.Builder

java.lang.Object
  extended by com.google.api.client.http.json.JsonHttpClient.Builder
      extended by com.google.api.client.googleapis.services.GoogleClient.Builder
Enclosing class:
GoogleClient

public static class GoogleClient.Builder
extends JsonHttpClient.Builder

Builder for GoogleClient.

Implementation is not thread-safe.

Since:
1.6

Constructor Summary
protected GoogleClient.Builder(HttpTransport transport, JsonFactory jsonFactory, GenericUrl baseUrl)
          Deprecated. (scheduled to be removed in 1.11) Use #Builder(HttpTransport, JsonFactory, String, String, HttpRequestInitializer) instead.
  GoogleClient.Builder(HttpTransport transport, JsonFactory jsonFactory, String rootUrl, String servicePath, HttpRequestInitializer httpRequestInitializer)
          Returns an instance of a new builder.
 
Method Summary
 GoogleClient build()
          Builds a new instance of GoogleClient.
 
Methods inherited from class com.google.api.client.http.json.JsonHttpClient.Builder
getApplicationName, getBaseUrl, getHttpRequestInitializer, getJsonFactory, getJsonHttpRequestInitializer, getObjectParser, getRootUrl, getServicePath, getTransport, isBaseUrlUsed, setApplicationName, setBaseUrl, setHttpRequestInitializer, setJsonHttpRequestInitializer, setObjectParser, setRootUrl, setServicePath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoogleClient.Builder

@Deprecated
protected GoogleClient.Builder(HttpTransport transport,
                                          JsonFactory jsonFactory,
                                          GenericUrl baseUrl)
Deprecated. (scheduled to be removed in 1.11) Use #Builder(HttpTransport, JsonFactory, String, String, HttpRequestInitializer) instead.

Returns an instance of a new builder.

Parameters:
transport - The transport to use for requests
jsonFactory - A factory for creating JSON parsers and serializers
baseUrl - The base URL of the service. Must end with a "/"

GoogleClient.Builder

public GoogleClient.Builder(HttpTransport transport,
                            JsonFactory jsonFactory,
                            String rootUrl,
                            String servicePath,
                            HttpRequestInitializer httpRequestInitializer)
Returns an instance of a new builder.

Parameters:
transport - The transport to use for requests
jsonFactory - A factory for creating JSON parsers and serializers
rootUrl - 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 none
Since:
1.10
Method Detail

build

public GoogleClient build()
Builds a new instance of GoogleClient.

Overrides:
build in class JsonHttpClient.Builder


Copyright © 2010-2012 Google. All Rights Reserved.