Class GoogleDriveFetcherFactory
java.lang.Object
org.apache.tika.pipes.fetcher.googledrive.GoogleDriveFetcherFactory
- All Implemented Interfaces:
FetcherFactory,TikaExtensionFactory<Fetcher>,org.pf4j.ExtensionPoint
Factory for creating Google Drive fetchers.
Example JSON configuration:
"fetchers": {
"google-drive-fetcher": {
"my-drive-fetcher": {
"serviceAccountCredentialsPath": "/path/to/credentials.json",
"impersonatedUser": "user@example.com"
}
}
}
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
GoogleDriveFetcherFactory
public GoogleDriveFetcherFactory()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceTikaExtensionFactory<Fetcher>- Returns:
- name of the extension in the config file
-
buildExtension
public Fetcher buildExtension(ExtensionConfig extensionConfig) throws IOException, TikaConfigException - Specified by:
buildExtensionin interfaceTikaExtensionFactory<Fetcher>- Throws:
IOExceptionTikaConfigException
-