Class BoxFetcherConfig
java.lang.Object
com.norconex.crawler.core.fetch.BaseFetcherConfig
com.norconex.crawler.fs.fetch.impl.box.BoxFetcherConfig
Configuration for
BoxFetcher.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumHow the fetcher gets the access token it calls Box with. -
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanBox API base URL.Credentials holding the OAuth access token as their password (the username is not used).The enterprise to act in.The address Box answers token requests on, forBoxFetcherConfig.AuthMethod.CLIENT_CREDENTIALS.inthashCode()setAccessToken(String accessToken) setApiBaseUrl(String apiBaseUrl) Box API base URL.setAuthMethod(BoxFetcherConfig.AuthMethod authMethod) setEnterpriseId(String enterpriseId) The enterprise to act in.setNotFoundStatusCodes(List<Integer> notFoundStatusCodes) setTokenUrl(String tokenUrl) The address Box answers token requests on, forBoxFetcherConfig.AuthMethod.CLIENT_CREDENTIALS.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
-
-
Constructor Details
-
BoxFetcherConfig
public BoxFetcherConfig()
-
-
Method Details
-
getValidStatusCodes
-
setValidStatusCodes
-
getNotFoundStatusCodes
-
setNotFoundStatusCodes
-
getAuthMethod
-
getEnterpriseId
The enterprise to act in. Required withBoxFetcherConfig.AuthMethod.CLIENT_CREDENTIALS. -
getTokenUrl
The address Box answers token requests on, forBoxFetcherConfig.AuthMethod.CLIENT_CREDENTIALS. Change it only to go through a proxy or a compatible server. -
getAccessToken
-
getCredentials
Credentials holding the OAuth access token as their password (the username is not used). Used whengetAccessToken()is empty. The password can be encrypted. -
getApiBaseUrl
Box API base URL. -
setAuthMethod
- Returns:
this.
-
setEnterpriseId
The enterprise to act in. Required withBoxFetcherConfig.AuthMethod.CLIENT_CREDENTIALS.- Returns:
this.
-
setTokenUrl
The address Box answers token requests on, forBoxFetcherConfig.AuthMethod.CLIENT_CREDENTIALS. Change it only to go through a proxy or a compatible server.- Returns:
this.
-
setAccessToken
- Returns:
this.
-
setApiBaseUrl
Box API base URL.- Returns:
this.
-
equals
- Overrides:
equalsin classBaseFetcherConfig
-
canEqual
- Overrides:
canEqualin classBaseFetcherConfig
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseFetcherConfig
-
toString
- Overrides:
toStringin classBaseFetcherConfig
-