Class GoogleDriveFetcherConfig
java.lang.Object
com.norconex.crawler.core.fetch.BaseFetcherConfig
com.norconex.crawler.fs.fetch.impl.googledrive.GoogleDriveFetcherConfig
Configuration scaffold for a future
GoogleDriveFetcher
implementation.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe address the Google Drive API is under, without a trailing slash.Optional Google API application name.Credentials holding the service account: the client email as the username and the PEM private key as the password, used whengetClientEmail()orgetPrivateKey()are empty.Optional delegated Google Workspace user email for domain-wide delegation.Explicit export overrides for Google-native document mime types.Default export policy for Google-native document families when no explicit override is configured.PEM private key content or secure key reference, kept as is in the configuration.The address Google's OAuth service answers token requests on.inthashCode()setApiBaseUrl(String apiBaseUrl) The address the Google Drive API is under, without a trailing slash.setApplicationName(String applicationName) Optional Google API application name.setClientEmail(String clientEmail) setDelegatedUser(String delegatedUser) Optional delegated Google Workspace user email for domain-wide delegation.setNativeDocumentFormatPolicy(GoogleDriveFetcherConfig.NativeDocumentFormatPolicy nativeDocumentFormatPolicy) Default export policy for Google-native document families when no explicit override is configured.setPrivateKey(String privateKey) PEM private key content or secure key reference, kept as is in the configuration.setTokenUrl(String tokenUrl) The address Google's OAuth service answers token requests on.toString()Methods inherited from class com.norconex.crawler.core.fetch.BaseFetcherConfig
getReferenceFilters, setReferenceFilters
-
Field Details
-
DEFAULT_TEXT_EXPORT_MIME_TYPES
-
DEFAULT_PDF_EXPORT_MIME_TYPES
-
DEFAULT_OOXML_EXPORT_MIME_TYPES
-
-
Constructor Details
-
GoogleDriveFetcherConfig
public GoogleDriveFetcherConfig()
-
-
Method Details
-
defaultExportMimeTypes
-
getTokenUrl
The address Google's OAuth service answers token requests on. Change it only to go through a proxy or a compatible server; it is also the audience the signed request names. -
getApiBaseUrl
The address the Google Drive API is under, without a trailing slash. Change it only to go through a proxy or a compatible server. -
getClientEmail
-
getPrivateKey
PEM private key content or secure key reference, kept as is in the configuration. To keep it secret (encrypted, or supplied as a variable), leave this empty and give it as the password of thecredentials. -
getCredentials
Credentials holding the service account: the client email as the username and the PEM private key as the password, used whengetClientEmail()orgetPrivateKey()are empty. The password can be encrypted. -
getDelegatedUser
Optional delegated Google Workspace user email for domain-wide delegation. -
getApplicationName
Optional Google API application name. -
getNativeDocumentFormatPolicy
Default export policy for Google-native document families when no explicit override is configured. -
getExportMimeTypeMap
Explicit export overrides for Google-native document mime types. Key: source mime type (e.g. application/vnd.google-apps.document) Value: export mime type (e.g. text/plain) -
setTokenUrl
The address Google's OAuth service answers token requests on. Change it only to go through a proxy or a compatible server; it is also the audience the signed request names.- Returns:
this.
-
setApiBaseUrl
The address the Google Drive API is under, without a trailing slash. Change it only to go through a proxy or a compatible server.- Returns:
this.
-
setClientEmail
- Returns:
this.
-
setPrivateKey
PEM private key content or secure key reference, kept as is in the configuration. To keep it secret (encrypted, or supplied as a variable), leave this empty and give it as the password of thecredentials.- Returns:
this.
-
setDelegatedUser
Optional delegated Google Workspace user email for domain-wide delegation.- Returns:
this.
-
setApplicationName
Optional Google API application name.- Returns:
this.
-
setNativeDocumentFormatPolicy
public GoogleDriveFetcherConfig setNativeDocumentFormatPolicy(GoogleDriveFetcherConfig.NativeDocumentFormatPolicy nativeDocumentFormatPolicy) Default export policy for Google-native document families when no explicit override is configured.- Returns:
this.
-
equals
- Overrides:
equalsin classBaseFetcherConfig
-
canEqual
- Overrides:
canEqualin classBaseFetcherConfig
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseFetcherConfig
-
toString
- Overrides:
toStringin classBaseFetcherConfig
-