Package org.apache.tika.client
Class HttpClientFactory
java.lang.Object
org.apache.tika.client.HttpClientFactory
This holds quite a bit of state and is not thread safe. Beware!
Also, we're currently ignoring the SSL checks. Please open a ticket/PR if you need robust SSL.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.http.client.HttpClient
build()
copy()
int
int
org.apache.http.conn.ConnectionKeepAliveStrategy
int
int
int
int
int
void
setAllowedHostsForRedirect
(Set<String> allowedHostsForRedirect) void
setAuthScheme
(String authScheme) only basic and ntlm are supportedvoid
setConnectTimeout
(int connectTimeout) void
setCredentialsAESEncrypted
(boolean credentialsAESEncrypted) void
setDisableContentCompression
(boolean disableContentCompression) void
setKeepAliveOnBadKeepAliveValueMs
(int keepAliveOnBadKeepAliveValueMs) void
setMaxConnections
(int maxConnections) void
setMaxConnectionsPerRoute
(int maxConnectionsPerRoute) void
setNtDomain
(String ntDomain) void
setPassword
(String password) void
setProxyHost
(String proxyHost) void
setProxyPort
(int proxyPort) void
setRequestTimeout
(int requestTimeout) void
setSocketTimeout
(int socketTimeout) void
setUserName
(String userName)
-
Field Details
-
AES_ENV_VAR
- See Also:
-
-
Constructor Details
-
HttpClientFactory
public HttpClientFactory()
-
-
Method Details
-
getProxyHost
-
setProxyHost
-
getProxyPort
public int getProxyPort() -
setProxyPort
public void setProxyPort(int proxyPort) -
getAllowedHostsForRedirect
-
setAllowedHostsForRedirect
-
getMaxConnectionsPerRoute
public int getMaxConnectionsPerRoute() -
setMaxConnectionsPerRoute
public void setMaxConnectionsPerRoute(int maxConnectionsPerRoute) -
getMaxConnections
public int getMaxConnections() -
setMaxConnections
public void setMaxConnections(int maxConnections) -
getRequestTimeout
public int getRequestTimeout() -
setRequestTimeout
public void setRequestTimeout(int requestTimeout) -
getConnectTimeout
public int getConnectTimeout() -
setConnectTimeout
public void setConnectTimeout(int connectTimeout) -
getSocketTimeout
public int getSocketTimeout() -
setSocketTimeout
public void setSocketTimeout(int socketTimeout) -
getKeepAliveOnBadKeepAliveValueMs
public int getKeepAliveOnBadKeepAliveValueMs() -
setKeepAliveOnBadKeepAliveValueMs
public void setKeepAliveOnBadKeepAliveValueMs(int keepAliveOnBadKeepAliveValueMs) -
getUserName
-
setUserName
-
getPassword
-
setPassword
-
getNtDomain
-
setNtDomain
-
getAuthScheme
-
setAuthScheme
only basic and ntlm are supported- Parameters:
authScheme
-
-
setCredentialsAESEncrypted
- Throws:
TikaConfigException
-
setDisableContentCompression
public void setDisableContentCompression(boolean disableContentCompression) -
copy
- Throws:
TikaConfigException
-
build
- Throws:
TikaConfigException
-
getKeepAliveStrategy
public org.apache.http.conn.ConnectionKeepAliveStrategy getKeepAliveStrategy()
-