org.apache.synapse.transport.nhttp
Class HttpCoreNIOSSLListener

java.lang.Object
  extended by org.apache.synapse.transport.nhttp.HttpCoreNIOListener
      extended by org.apache.synapse.transport.nhttp.HttpCoreNIOSSLListener
All Implemented Interfaces:
org.apache.axis2.transport.base.ManagementSupport, TransportListener

public class HttpCoreNIOSSLListener
extends HttpCoreNIOListener


Field Summary
 
Fields inherited from interface org.apache.axis2.transport.TransportListener
HOST_ADDRESS, PARAM_PORT
 
Constructor Summary
HttpCoreNIOSSLListener()
           
 
Method Summary
protected  org.apache.http.nio.reactor.IOEventDispatch getEventDispatch(org.apache.http.nio.NHttpServiceHandler handler, SSLContext sslContext, org.apache.http.impl.nio.reactor.SSLIOSessionHandler sslIOSessionHandler, org.apache.http.params.HttpParams params)
           
protected  String getServiceEPRPrefix(ConfigurationContext cfgCtx, String host, int port)
          Return the EPR prefix for services made available over this transport
protected  SSLContext getSSLContext(TransportInDescription transportIn)
          Create the SSLContext to be used by this listener
protected  org.apache.http.impl.nio.reactor.SSLIOSessionHandler getSSLIOSessionHandler(TransportInDescription transportIn)
          Create the SSLIOSessionHandler to initialize the SSL session / engine, and request for client authentication at the following levels, through an Axis2 transport configuration parameter as follows: SSLVerifyClient - none, optional, require
 
Methods inherited from class org.apache.synapse.transport.nhttp.HttpCoreNIOListener
destroy, getActiveConnectionsSize, getActiveThreadCount, getAvgSizeReceived, getAvgSizeSent, getBytesReceived, getBytesSent, getEPRForService, getEPRsForService, getFaultsReceiving, getFaultsSending, getLastResetTime, getMaxSizeReceived, getMaxSizeSent, getMessagesReceived, getMessagesSent, getMetricsWindow, getMinSizeReceived, getMinSizeSent, getQueueSize, getResponseCodeTable, getServiceEPRPrefix, getSessionContext, getTimeoutsReceiving, getTimeoutsSending, init, maintenenceShutdown, pause, resetStatistics, resume, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpCoreNIOSSLListener

public HttpCoreNIOSSLListener()
Method Detail

getEventDispatch

protected org.apache.http.nio.reactor.IOEventDispatch getEventDispatch(org.apache.http.nio.NHttpServiceHandler handler,
                                                                       SSLContext sslContext,
                                                                       org.apache.http.impl.nio.reactor.SSLIOSessionHandler sslIOSessionHandler,
                                                                       org.apache.http.params.HttpParams params)
Overrides:
getEventDispatch in class HttpCoreNIOListener

getServiceEPRPrefix

protected String getServiceEPRPrefix(ConfigurationContext cfgCtx,
                                     String host,
                                     int port)
Return the EPR prefix for services made available over this transport

Overrides:
getServiceEPRPrefix in class HttpCoreNIOListener
Parameters:
cfgCtx - configuration context to retrieve the service context path
host - name of the host
port - listening port
Returns:

getSSLContext

protected SSLContext getSSLContext(TransportInDescription transportIn)
                            throws AxisFault
Create the SSLContext to be used by this listener

Overrides:
getSSLContext in class HttpCoreNIOListener
Parameters:
transportIn - the Axis2 transport description
Returns:
the SSLContext to be used
Throws:
AxisFault - never thrown

getSSLIOSessionHandler

protected org.apache.http.impl.nio.reactor.SSLIOSessionHandler getSSLIOSessionHandler(TransportInDescription transportIn)
                                                                               throws AxisFault
Create the SSLIOSessionHandler to initialize the SSL session / engine, and request for client authentication at the following levels, through an Axis2 transport configuration parameter as follows: SSLVerifyClient - none, optional, require

Overrides:
getSSLIOSessionHandler in class HttpCoreNIOListener
Parameters:
transportIn - 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.