Class MockGoogleJsonClient (1.34.1)

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
NameDescription
builderMockGoogleJsonClient.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
NameDescription
transportcom.google.api.client.http.HttpTransport

HTTP transport

jsonFactorycom.google.api.client.json.JsonFactory

JSON factory

rootUrlString

root URL of the service

servicePathString

service path

httpRequestInitializercom.google.api.client.http.HttpRequestInitializer

HTTP request initializer or null for none

legacyDataWrapperboolean

whether using the legacy data wrapper in responses