public class HttpFetcher extends AbstractFetcher implements Initializable
Constructor and Description |
---|
HttpFetcher() |
Modifier and Type | Method and Description |
---|---|
void |
checkInitialization(InitializableProblemHandler problemHandler) |
InputStream |
fetch(String fetchKey,
long startRange,
long endRange,
Metadata metadata) |
InputStream |
fetch(String fetchKey,
Metadata metadata) |
void |
initialize(Map<String,Param> params) |
void |
setAuthScheme(String authScheme) |
void |
setConnectTimeout(int connectTimeout) |
void |
setNtDomain(String domain) |
void |
setPassword(String password) |
void |
setProxyHost(String proxyHost) |
void |
setProxyPort(int proxyPort) |
void |
setRequestTimeout(int requestTimeout) |
void |
setSocketTimeout(int socketTimeout) |
void |
setUserName(String userName) |
getName, setName
public HttpFetcher() throws TikaConfigException
TikaConfigException
public InputStream fetch(String fetchKey, Metadata metadata) throws IOException, TikaException
fetch
in interface Fetcher
IOException
TikaException
public InputStream fetch(String fetchKey, long startRange, long endRange, Metadata metadata) throws IOException, TikaException
IOException
TikaException
@Field public void setProxyPort(int proxyPort)
@Field public void setConnectTimeout(int connectTimeout)
@Field public void setRequestTimeout(int requestTimeout)
@Field public void setSocketTimeout(int socketTimeout)
public void initialize(Map<String,Param> params) throws TikaConfigException
initialize
in interface Initializable
params
- params to use for initializationTikaConfigException
public void checkInitialization(InitializableProblemHandler problemHandler) throws TikaConfigException
checkInitialization
in interface Initializable
problemHandler
- if there is a problem and no
custom initializableProblemHandler has been configured
via Initializable parameters,
this is called to respond.TikaConfigException
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.