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 booleanbooleanOptional Google API application name.Service account client email.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.inthashCode()setApplicationName(String applicationName) Optional Google API application name.setClientEmail(String clientEmail) Service account client email.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.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
-
getClientEmail
Service account client email. -
getPrivateKey
PEM private key content or secure key reference. -
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) -
setClientEmail
Service account client email.- Returns:
this.
-
setPrivateKey
PEM private key content or secure key reference.- 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
-