Class M365GraphFetcherConfig

java.lang.Object
com.norconex.crawler.core.fetch.BaseFetcherConfig
com.norconex.crawler.fs.fetch.impl.m365graph.M365GraphFetcherConfig

public class M365GraphFetcherConfig extends BaseFetcherConfig
Configuration for M365GraphFetcher.
  • Field Details

    • DEFAULT_VALID_STATUS_CODES

      public static final List<Integer> DEFAULT_VALID_STATUS_CODES
    • DEFAULT_NOT_FOUND_STATUS_CODES

      public static final List<Integer> DEFAULT_NOT_FOUND_STATUS_CODES
    • DEFAULT_NATIVE_RETRY_STATUS_CODES

      public static final List<Integer> DEFAULT_NATIVE_RETRY_STATUS_CODES
    • DEFAULT_NATIVE_RETRY_BASE_DELAY

      public static final Duration DEFAULT_NATIVE_RETRY_BASE_DELAY
  • Constructor Details

    • M365GraphFetcherConfig

      public M365GraphFetcherConfig()
  • Method Details

    • getValidStatusCodes

      public List<Integer> getValidStatusCodes()
    • setValidStatusCodes

      public M365GraphFetcherConfig setValidStatusCodes(List<Integer> validStatusCodes)
    • getNotFoundStatusCodes

      public List<Integer> getNotFoundStatusCodes()
    • setNotFoundStatusCodes

      public M365GraphFetcherConfig setNotFoundStatusCodes(List<Integer> notFoundStatusCodes)
    • getNativeRetryStatusCodes

      public List<Integer> getNativeRetryStatusCodes()
    • setNativeRetryStatusCodes

      public M365GraphFetcherConfig setNativeRetryStatusCodes(List<Integer> nativeRetryStatusCodes)
    • getTenantId

      public String getTenantId()
      Tenant ID used to acquire an access token.
    • getClientId

      public String getClientId()
      Azure AD application (client) ID.
    • getClientSecret

      public String getClientSecret()
      Azure AD client secret.
    • getAuthorityHost

      public String getAuthorityHost()
      Authentication authority host.
    • getGraphBaseUrl

      public String getGraphBaseUrl()
      Microsoft Graph v1 endpoint root.
    • getSourceDeltaExpansion

      public M365GraphFetcherConfig.SourceDeltaExpansion getSourceDeltaExpansion()
      How SOURCE_DELTA start references are expanded into Graph delta roots.
    • isNativeRetryEnabled

      public boolean isNativeRetryEnabled()
      Whether to apply M365-native retry for throttling/transient statuses. Disable to rely strictly on framework-level fetch retries.
    • getNativeRetryMaxRetries

      public int getNativeRetryMaxRetries()
      Maximum native retries for status codes listed in nativeRetryStatusCodes.
    • getNativeRetryBaseDelay

      public Duration getNativeRetryBaseDelay()
      Base delay for native retries when Retry-After is not provided.
    • setTenantId

      public M365GraphFetcherConfig setTenantId(String tenantId)
      Tenant ID used to acquire an access token.
      Returns:
      this.
    • setClientId

      public M365GraphFetcherConfig setClientId(String clientId)
      Azure AD application (client) ID.
      Returns:
      this.
    • setClientSecret

      public M365GraphFetcherConfig setClientSecret(String clientSecret)
      Azure AD client secret.
      Returns:
      this.
    • setAuthorityHost

      public M365GraphFetcherConfig setAuthorityHost(String authorityHost)
      Authentication authority host.
      Returns:
      this.
    • setGraphBaseUrl

      public M365GraphFetcherConfig setGraphBaseUrl(String graphBaseUrl)
      Microsoft Graph v1 endpoint root.
      Returns:
      this.
    • setSourceDeltaExpansion

      public M365GraphFetcherConfig setSourceDeltaExpansion(M365GraphFetcherConfig.SourceDeltaExpansion sourceDeltaExpansion)
      How SOURCE_DELTA start references are expanded into Graph delta roots.
      Returns:
      this.
    • setNativeRetryEnabled

      public M365GraphFetcherConfig setNativeRetryEnabled(boolean nativeRetryEnabled)
      Whether to apply M365-native retry for throttling/transient statuses. Disable to rely strictly on framework-level fetch retries.
      Returns:
      this.
    • setNativeRetryMaxRetries

      public M365GraphFetcherConfig setNativeRetryMaxRetries(int nativeRetryMaxRetries)
      Maximum native retries for status codes listed in nativeRetryStatusCodes.
      Returns:
      this.
    • setNativeRetryBaseDelay

      public M365GraphFetcherConfig setNativeRetryBaseDelay(Duration nativeRetryBaseDelay)
      Base delay for native retries when Retry-After is not provided.
      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