Class GcsFetcherConfig
java.lang.Object
com.norconex.crawler.core.fetch.BaseFetcherConfig
com.norconex.crawler.fs.fetch.impl.gcs.GcsFetcherConfig
Configuration for GcsFetcher.
Authentication is delegated to the official Google Cloud NIO provider, which uses the standard Google Application Default Credentials chain. When an endpoint is set, the fetcher assumes an emulator or local test server and connects without authentication.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanCredentials holding a Google service account key: the JSON key file content as the password (the username is not used).Optional endpoint override, mainly intended for GCS-compatible test servers such as fake-gcs-server.inthashCode()setEndpoint(String endpoint) Optional endpoint override, mainly intended for GCS-compatible test servers such as fake-gcs-server.toString()Methods inherited from class com.norconex.crawler.core.fetch.BaseFetcherConfig
getReferenceFilters, setReferenceFilters
-
Constructor Details
-
GcsFetcherConfig
public GcsFetcherConfig()
-
-
Method Details
-
getEndpoint
Optional endpoint override, mainly intended for GCS-compatible test servers such as fake-gcs-server. -
getCredentials
Credentials holding a Google service account key: the JSON key file content as the password (the username is not used). The password can be encrypted, so the key stays out of the configuration. When empty, the Google Application Default Credentials of the environment are used (the file theGOOGLE_APPLICATION_CREDENTIALSvariable points to, the account the machine is logged in as), or the bucket is read anonymously if there are none. Ignored whengetEndpoint()is set. -
setEndpoint
Optional endpoint override, mainly intended for GCS-compatible test servers such as fake-gcs-server.- Returns:
this.
-
equals
- Overrides:
equalsin classBaseFetcherConfig
-
canEqual
- Overrides:
canEqualin classBaseFetcherConfig
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseFetcherConfig
-
toString
- Overrides:
toStringin classBaseFetcherConfig
-