Class BatchGoogleSheetsClientFactory
java.lang.Object
org.apache.camel.component.google.sheets.BatchGoogleSheetsClientFactory
- All Implemented Interfaces:
GoogleSheetsClientFactory
-
Constructor Summary
ConstructorsConstructorDescriptionBatchGoogleSheetsClientFactory
(com.google.api.client.http.HttpTransport httpTransport) BatchGoogleSheetsClientFactory
(com.google.api.client.http.HttpTransport httpTransport, com.google.api.client.json.JsonFactory jsonFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
configure
(com.google.api.services.sheets.v4.Sheets.Builder clientBuilder) Subclasses may add customized configuration to client builder.com.google.api.services.sheets.v4.Sheets
makeClient
(String clientId, String clientSecret, Collection<String> scopes, String applicationName, String refreshToken, String accessToken) com.google.api.services.sheets.v4.Sheets
makeClient
(org.apache.camel.CamelContext camelContext, String serviceAccountKey, Collection<String> scopes, String applicationName, String delegate)
-
Constructor Details
-
BatchGoogleSheetsClientFactory
public BatchGoogleSheetsClientFactory() -
BatchGoogleSheetsClientFactory
public BatchGoogleSheetsClientFactory(com.google.api.client.http.HttpTransport httpTransport) -
BatchGoogleSheetsClientFactory
public BatchGoogleSheetsClientFactory(com.google.api.client.http.HttpTransport httpTransport, com.google.api.client.json.JsonFactory jsonFactory)
-
-
Method Details
-
makeClient
public com.google.api.services.sheets.v4.Sheets makeClient(String clientId, String clientSecret, Collection<String> scopes, String applicationName, String refreshToken, String accessToken) - Specified by:
makeClient
in interfaceGoogleSheetsClientFactory
-
configure
protected void configure(com.google.api.services.sheets.v4.Sheets.Builder clientBuilder) Subclasses may add customized configuration to client builder.- Parameters:
clientBuilder
-
-
makeClient
public com.google.api.services.sheets.v4.Sheets makeClient(org.apache.camel.CamelContext camelContext, String serviceAccountKey, Collection<String> scopes, String applicationName, String delegate) - Specified by:
makeClient
in interfaceGoogleSheetsClientFactory
-