Class HttpFetcherFactory
java.lang.Object
org.apache.tika.pipes.fetcher.http.HttpFetcherFactory
- All Implemented Interfaces:
FetcherFactory,TikaExtensionFactory<Fetcher>,org.pf4j.ExtensionPoint
Factory for creating HTTP fetchers.
Example JSON configuration:
"fetchers": {
"http-fetcher": {
"my-http-fetcher": {
"userName": "user",
"password": "pass",
"connectTimeoutMillis": 30000,
"socketTimeoutMillis": 120000,
"maxConnections": 200
}
}
}
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
HttpFetcherFactory
public HttpFetcherFactory()
-
-
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
-