org.apache.synapse.transport.nhttp
Class HttpCoreNIOSSLSender

java.lang.Object
  extended by org.apache.axis2.handlers.AbstractHandler
      extended by org.apache.synapse.transport.nhttp.HttpCoreNIOSender
          extended by org.apache.synapse.transport.nhttp.HttpCoreNIOSSLSender
All Implemented Interfaces:
Handler, org.apache.axis2.transport.base.ManagementSupport, TransportSender

public class HttpCoreNIOSSLSender
extends HttpCoreNIOSender


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.axis2.engine.Handler
Handler.InvocationResponse
 
Field Summary
 
Fields inherited from class org.apache.axis2.handlers.AbstractHandler
handlerDesc
 
Constructor Summary
HttpCoreNIOSSLSender()
           
 
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
 
Methods inherited from class org.apache.axis2.handlers.AbstractHandler
cleanup, flowComplete, getHandlerDesc, getName, getParameter, init, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.axis2.engine.Handler
cleanup, flowComplete, getHandlerDesc, getName, getParameter, init
 

Constructor Detail

HttpCoreNIOSSLSender

public HttpCoreNIOSSLSender()
Method Detail

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 instance
sslContext - SSL context used by the sender or null
sslIOSessionHandler - SSL session handler or null
params - HTTP parameters
transportOut - 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.