|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.synapse.transport.passthru.PassThroughHttpListener
public class PassThroughHttpListener
This is the TransportListener listening for incoming connections. This class start the IOReactor and registers the InRequest Handlers on it.
| Field Summary | |
|---|---|
static long |
ACTIVE_CONNECTION_MONITOR_DELAY
Delay for ActiveConnectionMonitor |
protected org.apache.commons.logging.Log |
log
|
| Fields inherited from interface org.apache.axis2.transport.TransportListener |
|---|
HOST_ADDRESS, PARAM_PORT |
| Constructor Summary | |
|---|---|
PassThroughHttpListener()
|
|
| Method Summary | |
|---|---|
void |
destroy()
|
org.apache.axis2.addressing.EndpointReference |
getEPRForService(String serviceName,
String ip)
|
org.apache.axis2.addressing.EndpointReference[] |
getEPRsForService(String serviceName,
String ip)
Return the EPRs for the given service over this transport |
org.apache.axis2.context.SessionContext |
getSessionContext(org.apache.axis2.context.MessageContext messageContext)
|
String |
getTransportName()
|
void |
init(org.apache.axis2.context.ConfigurationContext cfgCtx,
org.apache.axis2.description.TransportInDescription transportInDescription)
|
protected ServerConnFactoryBuilder |
initConnFactoryBuilder(org.apache.axis2.description.TransportInDescription transportIn,
org.apache.http.HttpHost host)
|
protected Scheme |
initScheme()
|
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 |
reload(org.apache.axis2.description.TransportInDescription transportIn)
|
void |
resume()
Resume the lister - Brings the lister into active mode back from a paused state |
void |
start()
|
void |
stop()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.apache.commons.logging.Log log
public static final long ACTIVE_CONNECTION_MONITOR_DELAY
| Constructor Detail |
|---|
public PassThroughHttpListener()
| Method Detail |
|---|
protected Scheme initScheme()
protected ServerConnFactoryBuilder initConnFactoryBuilder(org.apache.axis2.description.TransportInDescription transportIn,
org.apache.http.HttpHost host)
throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
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.TransportListenerorg.apache.axis2.AxisFault
public void start()
throws org.apache.axis2.AxisFault
start in interface org.apache.axis2.transport.TransportListenerorg.apache.axis2.AxisFault
public org.apache.axis2.addressing.EndpointReference getEPRForService(String serviceName,
String ip)
throws org.apache.axis2.AxisFault
getEPRForService in interface org.apache.axis2.transport.TransportListenerorg.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.TransportListenerserviceName - name of the serviceip - IP address
org.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.TransportListenerorg.apache.axis2.AxisFaultpublic void destroy()
destroy in interface org.apache.axis2.transport.TransportListener
public void pause()
throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault - if pausing fails
public void resume()
throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault - if the resume fails
public void reload(org.apache.axis2.description.TransportInDescription transportIn)
throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
public void maintenanceShutdown(long milliSecs)
throws org.apache.axis2.AxisFault
milliSecs - number of milliseconds to wait until pending requests complete
org.apache.axis2.AxisFault - if the shutdown failspublic String getTransportName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||