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 SummaryNested Classes Modifier and Type Class Description static classConnectionOptions.Builder
 - 
Field SummaryFields 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 SummaryAll 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_PROPERTIESpublic 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_CERTIFICATESpublic 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_VERIFICATIONpublic 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_HOSTpublic static final String PARAM_PROXY_HOST The host of a proxy server.- See Also:
- Constant Field Values
 
 - 
PARAM_PROXY_PORTpublic 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_PROTOCOLpublic 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_USERNAMEpublic 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_PASSWORDpublic 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_MSpublic 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_MSpublic 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_MSpublic 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_CONNECTIONSpublic 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_DEFAULTpublic 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
 
 - 
DEFAULTpublic static final ConnectionOptions DEFAULT The default connection options with regular TLS settings, without proxy and not leveraging system properties
 
- 
 - 
Method Detail- 
isUseSystemPropertespublic boolean isUseSystemPropertes() 
 - 
isAllowSelfSignedCertificatespublic boolean isAllowSelfSignedCertificates() 
 - 
isDisableHostnameVerificationpublic boolean isDisableHostnameVerification() 
 - 
getMaxConnectionspublic int getMaxConnections() 
 - 
getConnectionTimeoutMspublic int getConnectionTimeoutMs() 
 - 
getRequestTimeoutMspublic int getRequestTimeoutMs() 
 - 
getSocketTimeoutMspublic int getSocketTimeoutMs() 
 - 
getProxyHostpublic String getProxyHost() 
 - 
getProxyPortpublic int getProxyPort() 
 - 
getProxyProtocolpublic String getProxyProtocol() 
 - 
getProxyUsernamepublic String getProxyUsername() 
 - 
getProxyPasswordpublic String getProxyPassword() 
 - 
fromServiceFactoryParameterspublic static ConnectionOptions fromServiceFactoryParameters(Map<?,?> parameters) 
 - 
builderpublic static ConnectionOptions.Builder builder() 
 
- 
 
-