public class HttpClientFactory extends Object
Also, we're currently ignoring the SSL checks. Please open a ticket/PR if you need robust SSL.
Modifier and Type | Field and Description |
---|---|
static String |
AES_ENV_VAR |
Constructor and Description |
---|
HttpClientFactory() |
Modifier and Type | Method and Description |
---|---|
org.apache.http.client.HttpClient |
build() |
HttpClientFactory |
copy() |
Set<String> |
getAllowedHostsForRedirect() |
String |
getAuthScheme() |
int |
getConnectTimeout() |
int |
getKeepAliveOnBadKeepAliveValueMs() |
org.apache.http.conn.ConnectionKeepAliveStrategy |
getKeepAliveStrategy() |
int |
getMaxConnections() |
int |
getMaxConnectionsPerRoute() |
String |
getNtDomain() |
String |
getPassword() |
String |
getProxyHost() |
int |
getProxyPort() |
int |
getRequestTimeout() |
int |
getSocketTimeout() |
String |
getUserName() |
void |
setAllowedHostsForRedirect(Set<String> allowedHostsForRedirect) |
void |
setAuthScheme(String authScheme)
only basic and ntlm are supported
|
void |
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) |
public static final String AES_ENV_VAR
public String getProxyHost()
public void setProxyHost(String proxyHost)
public int getProxyPort()
public void setProxyPort(int proxyPort)
public void setAllowedHostsForRedirect(Set<String> allowedHostsForRedirect)
public int getMaxConnectionsPerRoute()
public void setMaxConnectionsPerRoute(int maxConnectionsPerRoute)
public int getMaxConnections()
public void setMaxConnections(int maxConnections)
public int getRequestTimeout()
public void setRequestTimeout(int requestTimeout)
public int getConnectTimeout()
public void setConnectTimeout(int connectTimeout)
public int getSocketTimeout()
public void setSocketTimeout(int socketTimeout)
public int getKeepAliveOnBadKeepAliveValueMs()
public void setKeepAliveOnBadKeepAliveValueMs(int keepAliveOnBadKeepAliveValueMs)
public String getUserName()
public void setUserName(String userName)
public String getPassword()
public void setPassword(String password)
public String getNtDomain()
public void setNtDomain(String ntDomain)
public String getAuthScheme()
public void setAuthScheme(String authScheme)
authScheme
- public void setCredentialsAESEncrypted(boolean credentialsAESEncrypted) throws TikaConfigException
TikaConfigException
public void setDisableContentCompression(boolean disableContentCompression)
public HttpClientFactory copy() throws TikaConfigException
TikaConfigException
public org.apache.http.client.HttpClient build() throws TikaConfigException
TikaConfigException
public org.apache.http.conn.ConnectionKeepAliveStrategy getKeepAliveStrategy()
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.