public class MockGoogleJsonClient extends AbstractGoogleJsonClient
| Modifier and Type | Class and Description |
|---|---|
static class |
MockGoogleJsonClient.Builder
Builder for
MockGoogleJsonClient. |
| Modifier | Constructor and Description |
|---|---|
|
MockGoogleJsonClient(com.google.api.client.http.HttpTransport transport,
com.google.api.client.http.HttpRequestInitializer httpRequestInitializer,
String rootUrl,
String servicePath,
com.google.api.client.json.JsonObjectParser jsonObjectParser,
GoogleClientRequestInitializer googleClientRequestInitializer,
String applicationName,
boolean suppressPatternChecks)
Deprecated.
(scheduled to be removed in 1.15) Use
MockGoogleJsonClient.Builder |
|
MockGoogleJsonClient(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,
boolean legacyDataWrapper) |
protected |
MockGoogleJsonClient(MockGoogleJsonClient.Builder builder) |
getJsonFactory, getObjectParserbatch, batch, getApplicationName, getBaseUrl, getGoogleClientRequestInitializer, getRequestFactory, getRootUrl, getServicePath, getSuppressPatternChecks, getSuppressRequiredParameterChecks, initializeprotected MockGoogleJsonClient(MockGoogleJsonClient.Builder builder)
builder - builderpublic MockGoogleJsonClient(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,
boolean legacyDataWrapper)
transport - HTTP transportjsonFactory - JSON factoryrootUrl - root URL of the serviceservicePath - service pathhttpRequestInitializer - HTTP request initializer or null for nonelegacyDataWrapper - whether using the legacy data wrapper in responses@Deprecated public MockGoogleJsonClient(com.google.api.client.http.HttpTransport transport, com.google.api.client.http.HttpRequestInitializer httpRequestInitializer, String rootUrl, String servicePath, com.google.api.client.json.JsonObjectParser jsonObjectParser, GoogleClientRequestInitializer googleClientRequestInitializer, String applicationName, boolean suppressPatternChecks)
MockGoogleJsonClient.Buildertransport - HTTP transporthttpRequestInitializer - HTTP request initializer or null for nonerootUrl - root URL of the serviceservicePath - service pathjsonObjectParser - JSON object parsergoogleClientRequestInitializer - Google request initializer or null for noneapplicationName - application name to be sent in the User-Agent header of requests or
null for nonesuppressPatternChecks - whether discovery pattern checks should be suppressed on required
parametersCopyright © 2010-2013 Google. All Rights Reserved.