Class GoogleDriveFetcherConfig

java.lang.Object
com.norconex.crawler.core.fetch.BaseFetcherConfig
com.norconex.crawler.fs.fetch.impl.googledrive.GoogleDriveFetcherConfig

public class GoogleDriveFetcherConfig extends BaseFetcherConfig
Configuration scaffold for a future GoogleDriveFetcher implementation.
  • Field Details

    • DEFAULT_TEXT_EXPORT_MIME_TYPES

      public static final Map<String,String> DEFAULT_TEXT_EXPORT_MIME_TYPES
    • DEFAULT_PDF_EXPORT_MIME_TYPES

      public static final Map<String,String> DEFAULT_PDF_EXPORT_MIME_TYPES
    • DEFAULT_OOXML_EXPORT_MIME_TYPES

      public static final Map<String,String> DEFAULT_OOXML_EXPORT_MIME_TYPES
  • Constructor Details

    • GoogleDriveFetcherConfig

      public GoogleDriveFetcherConfig()
  • Method Details

    • defaultExportMimeTypes

      public Map<String,String> defaultExportMimeTypes()
    • getClientEmail

      public String getClientEmail()
      Service account client email.
    • getPrivateKey

      public String getPrivateKey()
      PEM private key content or secure key reference.
    • getDelegatedUser

      public String getDelegatedUser()
      Optional delegated Google Workspace user email for domain-wide delegation.
    • getApplicationName

      public String getApplicationName()
      Optional Google API application name.
    • getNativeDocumentFormatPolicy

      public GoogleDriveFetcherConfig.NativeDocumentFormatPolicy getNativeDocumentFormatPolicy()
      Default export policy for Google-native document families when no explicit override is configured.
    • getExportMimeTypeMap

      public Map<String,String> 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

      public GoogleDriveFetcherConfig setClientEmail(String clientEmail)
      Service account client email.
      Returns:
      this.
    • setPrivateKey

      public GoogleDriveFetcherConfig setPrivateKey(String privateKey)
      PEM private key content or secure key reference.
      Returns:
      this.
    • setDelegatedUser

      public GoogleDriveFetcherConfig setDelegatedUser(String delegatedUser)
      Optional delegated Google Workspace user email for domain-wide delegation.
      Returns:
      this.
    • setApplicationName

      public GoogleDriveFetcherConfig setApplicationName(String applicationName)
      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

      public boolean equals(Object o)
      Overrides:
      equals in class BaseFetcherConfig
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class BaseFetcherConfig
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class BaseFetcherConfig
    • toString

      public String toString()
      Overrides:
      toString in class BaseFetcherConfig