public class PassThroughHttpListener extends Object implements org.apache.axis2.transport.TransportListener
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
PassThroughHttpListener() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
org.apache.axis2.addressing.EndpointReference[] |
getEPRsForService(String serviceName,
String ip)
Return the EPRs for the given service over this transport
|
protected org.apache.http.nio.reactor.IOEventDispatch |
getEventDispatch(org.apache.http.nio.NHttpServerEventHandler handler,
SSLContext sslContext,
org.apache.http.nio.reactor.ssl.SSLSetupHandler sslSetupHandler,
org.apache.http.config.ConnectionConfig config) |
org.apache.axis2.context.SessionContext |
getSessionContext(org.apache.axis2.context.MessageContext messageContext) |
protected SSLContext |
getSSLContext(org.apache.axis2.description.TransportInDescription transportIn)
Create the SSLContext to be used by this listener
|
protected org.apache.http.nio.reactor.ssl.SSLSetupHandler |
getSSLSetupHandler(org.apache.axis2.description.TransportInDescription transportOut)
Create the SSL IO Session handler to be used by this listener
|
void |
init(org.apache.axis2.context.ConfigurationContext cfgCtx,
org.apache.axis2.description.TransportInDescription transportInDescription) |
void |
maintenanceShutdown(long milliSecs)
Stop accepting new connections, and wait the maximum specified time for in-flight
requests to complete before a controlled shutdown for maintenance
|
void |
pause()
Pause the listener - Stops accepting new connections, but continues processing existing
connections until they complete.
|
void |
resume()
Resume the lister - Brings the lister into active mode back from a paused state
|
void |
start() |
void |
stop() |
public void init(org.apache.axis2.context.ConfigurationContext cfgCtx, org.apache.axis2.description.TransportInDescription transportInDescription) throws org.apache.axis2.AxisFault
init
in interface org.apache.axis2.transport.TransportListener
org.apache.axis2.AxisFault
public void start() throws org.apache.axis2.AxisFault
start
in interface org.apache.axis2.transport.TransportListener
org.apache.axis2.AxisFault
public org.apache.axis2.addressing.EndpointReference[] getEPRsForService(String serviceName, String ip) throws org.apache.axis2.AxisFault
getEPRsForService
in interface org.apache.axis2.transport.TransportListener
serviceName
- name of the serviceip
- IP addressorg.apache.axis2.AxisFault
- on errorpublic org.apache.axis2.context.SessionContext getSessionContext(org.apache.axis2.context.MessageContext messageContext)
getSessionContext
in interface org.apache.axis2.transport.TransportListener
public void stop() throws org.apache.axis2.AxisFault
stop
in interface org.apache.axis2.transport.TransportListener
org.apache.axis2.AxisFault
public void destroy()
destroy
in interface org.apache.axis2.transport.TransportListener
public void pause() throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
- if pausing failspublic void resume() throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
- if the resume failspublic void maintenanceShutdown(long milliSecs) throws org.apache.axis2.AxisFault
milliSecs
- number of milliseconds to wait until pending requests completeorg.apache.axis2.AxisFault
- if the shutdown failsprotected org.apache.http.nio.reactor.IOEventDispatch getEventDispatch(org.apache.http.nio.NHttpServerEventHandler handler, SSLContext sslContext, org.apache.http.nio.reactor.ssl.SSLSetupHandler sslSetupHandler, org.apache.http.config.ConnectionConfig config)
protected SSLContext getSSLContext(org.apache.axis2.description.TransportInDescription transportIn) throws org.apache.axis2.AxisFault
transportIn
- transport in descriptionorg.apache.axis2.AxisFault
- never thrownprotected org.apache.http.nio.reactor.ssl.SSLSetupHandler getSSLSetupHandler(org.apache.axis2.description.TransportInDescription transportOut) throws org.apache.axis2.AxisFault
transportOut
- Transport out descriptionorg.apache.axis2.AxisFault
- on errorCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.