org.apache.synapse.transport.nhttp
Class HttpCoreNIOSSLSender
java.lang.Object
org.apache.axis2.handlers.AbstractHandler
org.apache.synapse.transport.nhttp.HttpCoreNIOSender
org.apache.synapse.transport.nhttp.HttpCoreNIOSSLSender
- All Implemented Interfaces:
- Handler, org.apache.axis2.transport.base.ManagementSupport, TransportSender
public class HttpCoreNIOSSLSender
- extends HttpCoreNIOSender
Method Summary |
protected org.apache.http.nio.reactor.IOEventDispatch |
getEventDispatch(org.apache.http.nio.NHttpClientHandler handler,
SSLContext sslContext,
org.apache.http.impl.nio.reactor.SSLIOSessionHandler sslIOSessionHandler,
org.apache.http.params.HttpParams params,
TransportOutDescription transportOut)
Return the IOEventDispatch implementation to be used. |
protected SSLContext |
getSSLContext(TransportOutDescription transportOut)
Create the SSLContext to be used by this sender |
protected org.apache.http.impl.nio.reactor.SSLIOSessionHandler |
getSSLIOSessionHandler(TransportOutDescription transportOut)
Create the SSLIOSessionHandler to initialize the host name verification at the following
levels, through an Axis2 transport configuration parameter as follows:
HostnameVerifier - Default, DefaultAndLocalhost, Strict, AllowAll |
Methods inherited from class org.apache.synapse.transport.nhttp.HttpCoreNIOSender |
cleanup, getActiveThreadCount, getAvgSizeReceived, getAvgSizeSent, getBytesReceived, getBytesSent, getFaultsReceiving, getFaultsSending, getLastResetTime, getMaxSizeReceived, getMaxSizeSent, getMessagesReceived, getMessagesSent, getMetricsWindow, getMinSizeReceived, getMinSizeSent, getQueueSize, getResponseCodeTable, getTimeoutsReceiving, getTimeoutsSending, init, invoke, maintenenceShutdown, pause, resetStatistics, resume, stop |
HttpCoreNIOSSLSender
public HttpCoreNIOSSLSender()
getEventDispatch
protected org.apache.http.nio.reactor.IOEventDispatch getEventDispatch(org.apache.http.nio.NHttpClientHandler handler,
SSLContext sslContext,
org.apache.http.impl.nio.reactor.SSLIOSessionHandler sslIOSessionHandler,
org.apache.http.params.HttpParams params,
TransportOutDescription transportOut)
throws AxisFault
- Description copied from class:
HttpCoreNIOSender
- Return the IOEventDispatch implementation to be used. This is overridden by the
SSL sender
- Overrides:
getEventDispatch
in class HttpCoreNIOSender
- Parameters:
handler
- The NHTTP client handler instancesslContext
- SSL context used by the sender or nullsslIOSessionHandler
- SSL session handler or nullparams
- HTTP parameterstransportOut
- Transport out description
- Returns:
- an IOEventDispatch instance
- Throws:
AxisFault
- on error
getSSLContext
protected SSLContext getSSLContext(TransportOutDescription transportOut)
throws AxisFault
- Create the SSLContext to be used by this sender
- Overrides:
getSSLContext
in class HttpCoreNIOSender
- Parameters:
transportOut
- the Axis2 transport configuration
- Returns:
- the SSLContext to be used
- Throws:
AxisFault
- on error
getSSLIOSessionHandler
protected org.apache.http.impl.nio.reactor.SSLIOSessionHandler getSSLIOSessionHandler(TransportOutDescription transportOut)
throws AxisFault
- Create the SSLIOSessionHandler to initialize the host name verification at the following
levels, through an Axis2 transport configuration parameter as follows:
HostnameVerifier - Default, DefaultAndLocalhost, Strict, AllowAll
- Overrides:
getSSLIOSessionHandler
in class HttpCoreNIOSender
- Parameters:
transportOut
- the Axis2 transport configuration
- Returns:
- the SSLIOSessionHandler to be used
- Throws:
AxisFault
- if a configuration error occurs
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.