![JAR search and dependency download from the Maven repository](/logo.png)
io.camunda.connector.gdrive.supliers.GoogleDocsServiceSupplier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of connector-google-drive Show documentation
Show all versions of connector-google-drive Show documentation
Camunda Google Drive Connector
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. Licensed under a proprietary license.
* See the License.txt file for more information. You may not use this file
* except in compliance with the proprietary license.
*/
package io.camunda.connector.gdrive.supliers;
import static io.camunda.google.supplier.util.GoogleServiceSupplierUtil.getHttpHttpCredentialsAdapter;
import static io.camunda.google.supplier.util.GoogleServiceSupplierUtil.getNetHttpTransport;
import com.google.api.client.json.gson.GsonFactory;
import com.google.api.services.docs.v1.Docs;
import io.camunda.google.model.Authentication;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public final class GoogleDocsServiceSupplier {
private static final Logger LOGGER = LoggerFactory.getLogger(GoogleDocsServiceSupplier.class);
private GoogleDocsServiceSupplier() {}
public static Docs createDocsClientInstance(final Authentication auth) {
Docs docs =
new Docs.Builder(
getNetHttpTransport(),
GsonFactory.getDefaultInstance(),
getHttpHttpCredentialsAdapter(auth))
.build();
LOGGER.debug("Google docs service was successfully initialized");
return docs;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy