Class MockGoogleJsonClient (2.6.0)

public class MockGoogleJsonClient extends AbstractGoogleJsonClient

Beta
Thread-safe mock Google JSON client.

Inheritance

java.lang.Object > AbstractGoogleClient > AbstractGoogleJsonClient > MockGoogleJsonClient

Constructors

MockGoogleJsonClient(MockGoogleJsonClient.Builder builder)

protected MockGoogleJsonClient(MockGoogleJsonClient.Builder builder)
Parameter
Name Description
builder MockGoogleJsonClient.Builder

builder

MockGoogleJsonClient(HttpTransport transport, JsonFactory jsonFactory, String rootUrl, String servicePath, HttpRequestInitializer httpRequestInitializer, boolean legacyDataWrapper)

public MockGoogleJsonClient(HttpTransport transport, JsonFactory jsonFactory, String rootUrl, String servicePath, HttpRequestInitializer httpRequestInitializer, boolean legacyDataWrapper)
Parameters
Name Description
transport com.google.api.client.http.HttpTransport

HTTP transport

jsonFactory com.google.api.client.json.JsonFactory

JSON factory

rootUrl String

root URL of the service

servicePath String

service path

httpRequestInitializer com.google.api.client.http.HttpRequestInitializer

HTTP request initializer or null for none

legacyDataWrapper boolean

whether using the legacy data wrapper in responses