Class M365GraphFetcherConfig
java.lang.Object
com.norconex.crawler.core.fetch.BaseFetcherConfig
com.norconex.crawler.fs.fetch.impl.m365graph.M365GraphFetcherConfig
Configuration for
M365GraphFetcher.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanAuthentication authority host.Azure AD application (client) ID.Azure AD client secret, kept as is in the configuration.Credentials holding the application: the client ID as the username and the client secret as the password, used whengetClientId()orgetClientSecret()are empty.Microsoft Graph v1 endpoint root.Base delay for native retries when Retry-After is not provided.intMaximum native retries for status codes listed innativeRetryStatusCodes.How SOURCE_DELTA start references are expanded into Graph delta roots.Tenant ID used to acquire an access token.inthashCode()booleanWhether to apply M365-native retry for throttling/transient statuses.setAuthorityHost(String authorityHost) Authentication authority host.setClientId(String clientId) Azure AD application (client) ID.setClientSecret(String clientSecret) Azure AD client secret, kept as is in the configuration.setGraphBaseUrl(String graphBaseUrl) Microsoft Graph v1 endpoint root.setNativeRetryBaseDelay(Duration nativeRetryBaseDelay) Base delay for native retries when Retry-After is not provided.setNativeRetryEnabled(boolean nativeRetryEnabled) Whether to apply M365-native retry for throttling/transient statuses.setNativeRetryMaxRetries(int nativeRetryMaxRetries) Maximum native retries for status codes listed innativeRetryStatusCodes.setNativeRetryStatusCodes(List<Integer> nativeRetryStatusCodes) setNotFoundStatusCodes(List<Integer> notFoundStatusCodes) setSourceDeltaExpansion(M365GraphFetcherConfig.SourceDeltaExpansion sourceDeltaExpansion) How SOURCE_DELTA start references are expanded into Graph delta roots.setTenantId(String tenantId) Tenant ID used to acquire an access token.setValidStatusCodes(List<Integer> validStatusCodes) toString()Methods inherited from class com.norconex.crawler.core.fetch.BaseFetcherConfig
getReferenceFilters, setReferenceFilters
-
Field Details
-
DEFAULT_VALID_STATUS_CODES
-
DEFAULT_NOT_FOUND_STATUS_CODES
-
DEFAULT_NATIVE_RETRY_STATUS_CODES
-
DEFAULT_NATIVE_RETRY_BASE_DELAY
-
-
Constructor Details
-
M365GraphFetcherConfig
public M365GraphFetcherConfig()
-
-
Method Details
-
getValidStatusCodes
-
setValidStatusCodes
-
getNotFoundStatusCodes
-
setNotFoundStatusCodes
-
getNativeRetryStatusCodes
-
setNativeRetryStatusCodes
-
getTenantId
Tenant ID used to acquire an access token. -
getClientId
Azure AD application (client) ID. Used instead of the username of thecredentialswhen set. -
getClientSecret
Azure AD client secret, 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 application: the client ID as the username and the client secret as the password, used whengetClientId()orgetClientSecret()are empty. The password can be encrypted. -
getAuthorityHost
Authentication authority host. -
getGraphBaseUrl
Microsoft Graph v1 endpoint root. -
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 innativeRetryStatusCodes. -
getNativeRetryBaseDelay
Base delay for native retries when Retry-After is not provided. -
setTenantId
Tenant ID used to acquire an access token.- Returns:
this.
-
setClientId
Azure AD application (client) ID. Used instead of the username of thecredentialswhen set.- Returns:
this.
-
setClientSecret
Azure AD client secret, 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.
-
setAuthorityHost
Authentication authority host.- Returns:
this.
-
setGraphBaseUrl
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
Whether to apply M365-native retry for throttling/transient statuses. Disable to rely strictly on framework-level fetch retries.- Returns:
this.
-
setNativeRetryMaxRetries
Maximum native retries for status codes listed innativeRetryStatusCodes.- Returns:
this.
-
setNativeRetryBaseDelay
Base delay for native retries when Retry-After is not provided.- Returns:
this.
-
equals
- Overrides:
equalsin classBaseFetcherConfig
-
canEqual
- Overrides:
canEqualin classBaseFetcherConfig
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseFetcherConfig
-
toString
- Overrides:
toStringin classBaseFetcherConfig
-