public class HttpsNIOSender extends HttpNIOSender
ConfigurationElement.State
maxConnections, maxPerRoute
metrics, originatingTransport, properties
Constructor and Description |
---|
HttpsNIOSender(FileCache fileCache)
Default constructor accepting the FileCache to use
|
Modifier and Type | Method and Description |
---|---|
protected org.apache.http.nio.NHttpConnectionFactory |
getConnectionFactory(org.apache.http.params.HttpParams params) |
void |
setHostnameVerifier(java.lang.String hostnameVerifier)
Select hostname verifier instance to use - default is "Default"
|
void |
setIdentityKeyPassword(java.lang.String identityKeyPassword)
Identity key password
|
void |
setIdentityStorePassword(java.lang.String identityStorePassword)
Identity keystore password
|
void |
setIdentityStorePath(java.lang.String identityStorePath)
Identity keystore path
|
void |
setIdentityStoreType(java.lang.String identityStoreType)
Identity keystore type
|
void |
setNonProductionNoRemoteCertValidation(boolean nonProductionNoRemoteCertValidation)
Turn off remote certificate validation - NOT for production use.
|
void |
setTrustStorePassword(java.lang.String trustStorePassword)
Trust keystore password
|
void |
setTrustStorePath(java.lang.String trustStorePath)
Trust keystore path
|
void |
setTrustStoreType(java.lang.String trustStoreType)
Trust keystore type
|
setConnectionDebugHeaders, setContinueOnCheckedExceptions, setContinueOnRuntimeExceptions, setEnableConnectionDebug, setKeepalive, setKeepAliveSafetyThreshold, setMaxConnections, setMaxPerRoute, setProxyBypassList, setProxyHost, setProxyPort, setReplaceUserAgent, setUnzipResponseEntities, setZeroCopyEnabled, toDetailedViewExt
getDetails, getOriginatingTransport, pause, resetStatistics, resume, setProperties, start, stop, toBasicView, toDetailedView
equals, getDeploymentUnit, getDerivedName, getId, getState, getStreamCount, getTimerStreamMax, getTimerStreamMean, getTimerStreamMin, getTimerStreamPer, hashCode, init, isDebugOn, isStarted, maintenanceShutdown, markAsOutdated, resetCounter, resetTimer, resolveMetricsStreams, setBeanName, setConfig, setDebugOn, setDerivedName, setId, setMetricsEngine, setState, throwIllegalStateException, undeploy
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
retire
public HttpsNIOSender(FileCache fileCache)
fileCache
- the file cache to useprotected org.apache.http.nio.NHttpConnectionFactory getConnectionFactory(org.apache.http.params.HttpParams params)
getConnectionFactory
in class HttpNIOSender
public void setIdentityStorePath(java.lang.String identityStorePath)
identityStorePath
- identity keystore pathpublic void setIdentityStoreType(java.lang.String identityStoreType)
identityStoreType
- identity keystore typepublic void setIdentityStorePassword(java.lang.String identityStorePassword)
identityStorePassword
- identity keystore passwordpublic void setIdentityKeyPassword(java.lang.String identityKeyPassword)
identityKeyPassword
- identity key passwordpublic void setTrustStorePath(java.lang.String trustStorePath)
trustStorePath
- Trust keystore pathpublic void setTrustStoreType(java.lang.String trustStoreType)
trustStoreType
- Trust keystore typepublic void setTrustStorePassword(java.lang.String trustStorePassword)
trustStorePassword
- Trust keystore passwordpublic void setNonProductionNoRemoteCertValidation(boolean nonProductionNoRemoteCertValidation)
nonProductionNoRemoteCertValidation
- true disables remote certificate validationpublic void setHostnameVerifier(java.lang.String hostnameVerifier)
hostnameVerifier
- "Default" - The hostname must match either the first CN, or any of the subject-alts. A wildcard can occur
in the CN, and in any of the subject-alts.
"Strict" - works the same way as java.net.URL, IE6 etc. Compliant with 2818 for wildcards. The hostname must
match either the first CN, or any of the subject-alts. A wildcard can occur in the CN, and in any of the subject-alts.
"AllowAll" - disables hostname verification
"DefaultAndLocalHost" - same as Default, but a host of "localhost", "localhost.localdomain", "127.0.0.1",
"::1" will always pass, no matter what is in the server's certificate