Package org.apache.jackrabbit.spi2dav
Class ConnectionOptions
- java.lang.Object
-
- org.apache.jackrabbit.spi2dav.ConnectionOptions
-
public final class ConnectionOptions extends Object
Advanced connection options to use for connections to a remote repository.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConnectionOptions.Builder
-
Field Summary
Fields Modifier and Type Field Description static ConnectionOptionsDEFAULTThe default connection options with regular TLS settings, without proxy and not leveraging system propertiesstatic intMAX_CONNECTIONS_DEFAULTDefault value for the maximum number of connections per host such as configured withPoolingHttpClientConnectionManager.setDefaultMaxPerRoute(int).static StringPARAM_ALLOW_SELF_SIGNED_CERTIFICATESBoolean flag whether to allow self-signed certificates of remote repositories.static StringPARAM_CONNECTION_TIMEOUT_MSThe connection timeout in milliseconds as Integer.static StringPARAM_DISABLE_HOSTNAME_VERIFICATIONBoolean flag whether to disable the host name verification against the common name of the server's certificate.static StringPARAM_MAX_CONNECTIONSOptional configuration parameter: Its value defines the maximumConnectionsPerHost value on the HttpClient configuration and must be an int greater than zero.static StringPARAM_PROXY_HOSTThe host of a proxy server.static StringPARAM_PROXY_PASSWORDThe password to authenticate at the proxy.static StringPARAM_PROXY_PORTInteger value for the proxy's port.static StringPARAM_PROXY_PROTOCOLThe protocol for which to use the proxy.static StringPARAM_PROXY_USERNAMEThe user name to authenticate at the proxy.static StringPARAM_REQUEST_TIMEOUT_MSThe request timeout in milliseconds as Integer.static StringPARAM_SOCKET_TIMEOUT_MSThe request timeout in milliseconds as Integer.static StringPARAM_USE_SYSTEM_PROPERTIESBoolean flag whether to use the default Java system properties for setting proxy, TLS and further options as defined byHttpClientBuilder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConnectionOptions.Builderbuilder()booleanequals(Object obj)static ConnectionOptionsfromServiceFactoryParameters(Map<?,?> parameters)intgetConnectionTimeoutMs()intgetMaxConnections()StringgetProxyHost()StringgetProxyPassword()intgetProxyPort()StringgetProxyProtocol()StringgetProxyUsername()intgetRequestTimeoutMs()intgetSocketTimeoutMs()inthashCode()booleanisAllowSelfSignedCertificates()booleanisDisableHostnameVerification()booleanisUseSystemPropertes()Map<String,String>toServiceFactoryParameters()StringtoString()
-
-
-
Field Detail
-
PARAM_USE_SYSTEM_PROPERTIES
public static final String PARAM_USE_SYSTEM_PROPERTIES
Boolean flag whether to use the default Java system properties for setting proxy, TLS and further options as defined byHttpClientBuilder. Default =false.- See Also:
- Constant Field Values
-
PARAM_ALLOW_SELF_SIGNED_CERTIFICATES
public static final String PARAM_ALLOW_SELF_SIGNED_CERTIFICATES
Boolean flag whether to allow self-signed certificates of remote repositories. Default =false.- See Also:
- Constant Field Values
-
PARAM_DISABLE_HOSTNAME_VERIFICATION
public static final String PARAM_DISABLE_HOSTNAME_VERIFICATION
Boolean flag whether to disable the host name verification against the common name of the server's certificate. Default =false.- See Also:
- Constant Field Values
-
PARAM_PROXY_HOST
public static final String PARAM_PROXY_HOST
The host of a proxy server.- See Also:
- Constant Field Values
-
PARAM_PROXY_PORT
public static final String PARAM_PROXY_PORT
Integer value for the proxy's port. Only effective ifPARAM_PROXY_HOSTis used as well. If -1 or not set the default for the scheme will be used.- See Also:
- Constant Field Values
-
PARAM_PROXY_PROTOCOL
public static final String PARAM_PROXY_PROTOCOL
The protocol for which to use the proxy. Only effective ifPARAM_PROXY_HOSTis used as well.- See Also:
- Constant Field Values
-
PARAM_PROXY_USERNAME
public static final String PARAM_PROXY_USERNAME
The user name to authenticate at the proxy. Only effective ifPARAM_PROXY_HOSTis used as well.- See Also:
- Constant Field Values
-
PARAM_PROXY_PASSWORD
public static final String PARAM_PROXY_PASSWORD
The password to authenticate at the proxy. Only effective ifPARAM_PROXY_HOSTandPARAM_PROXY_USERNAMEare used as well.- See Also:
- Constant Field Values
-
PARAM_CONNECTION_TIMEOUT_MS
public static final String PARAM_CONNECTION_TIMEOUT_MS
The connection timeout in milliseconds as Integer. -1 for default, 0 for infinite.- See Also:
- Constant Field Values
-
PARAM_REQUEST_TIMEOUT_MS
public static final String PARAM_REQUEST_TIMEOUT_MS
The request timeout in milliseconds as Integer. -1 for default, 0 for infinite.- See Also:
- Constant Field Values
-
PARAM_SOCKET_TIMEOUT_MS
public static final String PARAM_SOCKET_TIMEOUT_MS
The request timeout in milliseconds as Integer. -1 for default, 0 for infinite.- See Also:
- Constant Field Values
-
PARAM_MAX_CONNECTIONS
public static final 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.- See Also:
- Constant Field Values
-
MAX_CONNECTIONS_DEFAULT
public static final int MAX_CONNECTIONS_DEFAULT
Default value for the maximum number of connections per host such as configured withPoolingHttpClientConnectionManager.setDefaultMaxPerRoute(int).- See Also:
- Constant Field Values
-
DEFAULT
public static final ConnectionOptions DEFAULT
The default connection options with regular TLS settings, without proxy and not leveraging system properties
-
-
Method Detail
-
isUseSystemPropertes
public boolean isUseSystemPropertes()
-
isAllowSelfSignedCertificates
public boolean isAllowSelfSignedCertificates()
-
isDisableHostnameVerification
public boolean isDisableHostnameVerification()
-
getMaxConnections
public int getMaxConnections()
-
getConnectionTimeoutMs
public int getConnectionTimeoutMs()
-
getRequestTimeoutMs
public int getRequestTimeoutMs()
-
getSocketTimeoutMs
public int getSocketTimeoutMs()
-
getProxyHost
public String getProxyHost()
-
getProxyPort
public int getProxyPort()
-
getProxyProtocol
public String getProxyProtocol()
-
getProxyUsername
public String getProxyUsername()
-
getProxyPassword
public String getProxyPassword()
-
fromServiceFactoryParameters
public static ConnectionOptions fromServiceFactoryParameters(Map<?,?> parameters)
-
builder
public static ConnectionOptions.Builder builder()
-
-