public final class ConnectionOptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ConnectionOptions.Builder |
Modifier and Type | Field and Description |
---|---|
static ConnectionOptions |
DEFAULT
The default connection options with regular TLS settings, without proxy and not leveraging system properties
|
static int |
MAX_CONNECTIONS_DEFAULT
Default value for the maximum number of connections per host such as
configured with
PoolingHttpClientConnectionManager.setDefaultMaxPerRoute(int) . |
static String |
PARAM_ALLOW_SELF_SIGNED_CERTIFICATES
Boolean flag whether to allow self-signed certificates of remote repositories.
|
static String |
PARAM_CONNECTION_TIMEOUT_MS
The connection timeout in milliseconds as Integer.
|
static String |
PARAM_DISABLE_HOSTNAME_VERIFICATION
Boolean flag whether to disable the host name verification against the common name of the server's certificate.
|
static String |
PARAM_MAX_CONNECTIONS
Optional configuration parameter: Its value defines the
maximumConnectionsPerHost value on the HttpClient configuration and
must be an int greater than zero.
|
static String |
PARAM_PROXY_HOST
The host of a proxy server.
|
static String |
PARAM_PROXY_PASSWORD
The password to authenticate at the proxy.
|
static String |
PARAM_PROXY_PORT
Integer value for the proxy's port.
|
static String |
PARAM_PROXY_PROTOCOL
The protocol for which to use the proxy.
|
static String |
PARAM_PROXY_USERNAME
The user name to authenticate at the proxy.
|
static String |
PARAM_REQUEST_TIMEOUT_MS
The request timeout in milliseconds as Integer.
|
static String |
PARAM_SOCKET_TIMEOUT_MS
The request timeout in milliseconds as Integer.
|
static String |
PARAM_USE_SYSTEM_PROPERTIES
Boolean flag whether to use the default Java system properties for setting proxy, TLS and further options as defined by
HttpClientBuilder . |
Modifier and Type | Method and Description |
---|---|
static ConnectionOptions.Builder |
builder() |
boolean |
equals(Object obj) |
static ConnectionOptions |
fromServiceFactoryParameters(Map<?,?> parameters) |
int |
getConnectionTimeoutMs() |
int |
getMaxConnections() |
String |
getProxyHost() |
String |
getProxyPassword() |
int |
getProxyPort() |
String |
getProxyProtocol() |
String |
getProxyUsername() |
int |
getRequestTimeoutMs() |
int |
getSocketTimeoutMs() |
int |
hashCode() |
boolean |
isAllowSelfSignedCertificates() |
boolean |
isDisableHostnameVerification() |
boolean |
isUseSystemPropertes() |
Map<String,String> |
toServiceFactoryParameters() |
String |
toString() |
public static final String PARAM_USE_SYSTEM_PROPERTIES
HttpClientBuilder
.
Default = false
.public static final String PARAM_ALLOW_SELF_SIGNED_CERTIFICATES
false
.public static final String PARAM_DISABLE_HOSTNAME_VERIFICATION
false
.public static final String PARAM_PROXY_HOST
public static final String PARAM_PROXY_PORT
PARAM_PROXY_HOST
is used as well. If -1 or not set the default for the scheme will be used.public static final String PARAM_PROXY_PROTOCOL
PARAM_PROXY_HOST
is used as well.public static final String PARAM_PROXY_USERNAME
PARAM_PROXY_HOST
is used as well.public static final String PARAM_PROXY_PASSWORD
PARAM_PROXY_HOST
and PARAM_PROXY_USERNAME
are used as well.public static final String PARAM_CONNECTION_TIMEOUT_MS
public static final String PARAM_REQUEST_TIMEOUT_MS
public static final String PARAM_SOCKET_TIMEOUT_MS
public static final String PARAM_MAX_CONNECTIONS
public static final int MAX_CONNECTIONS_DEFAULT
PoolingHttpClientConnectionManager.setDefaultMaxPerRoute(int)
.public static final ConnectionOptions DEFAULT
public boolean isUseSystemPropertes()
public boolean isAllowSelfSignedCertificates()
public boolean isDisableHostnameVerification()
public int getMaxConnections()
public int getConnectionTimeoutMs()
public int getRequestTimeoutMs()
public int getSocketTimeoutMs()
public String getProxyHost()
public int getProxyPort()
public String getProxyProtocol()
public String getProxyUsername()
public String getProxyPassword()
public static ConnectionOptions fromServiceFactoryParameters(Map<?,?> parameters)
public static ConnectionOptions.Builder builder()
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.