E - the type of protocol endpoint for this transportpublic abstract class AbstractTransportListenerEx<E extends ProtocolEndpoint> extends AbstractTransportListener
AbstractTransportListener with a higher level
of abstraction. It maintains the mapping between services and protocol specific
endpoints.
Note: the intention is to eventually merge the code in this class into
AbstractTransportListener
cfgCtx, config, isNonBlocking, log, metrics, state, useAxis2ThreadPool, workerPool| Constructor and Description |
|---|
AbstractTransportListenerEx() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract E |
createEndpoint() |
protected abstract void |
doInit()
Initialize the transport.
|
Collection<E> |
getEndpoints()
Get the collection of all protocol endpoints managed by this transport, including the
endpoint configured at the transport level.
|
org.apache.axis2.addressing.EndpointReference[] |
getEPRsForService(String serviceName,
String ip) |
void |
init(org.apache.axis2.context.ConfigurationContext cfgCtx,
org.apache.axis2.description.TransportInDescription transportIn)
Initialize the generic transport.
|
void |
start() |
protected abstract void |
startEndpoint(E endpoint) |
protected void |
startListeningForService(org.apache.axis2.description.AxisService service) |
void |
stop() |
protected abstract void |
stopEndpoint(E endpoint) |
protected void |
stopListeningForService(org.apache.axis2.description.AxisService service) |
createMessageContext, destroy, disableTransportForService, getActiveThreadCount, getAvgSizeReceived, getAvgSizeSent, getBytesReceived, getBytesSent, getConfigurationContext, getEPRForService, getEPRsForService, getFaultsReceiving, getFaultsSending, getLastResetTime, getMaxSizeReceived, getMaxSizeSent, getMessagesReceived, getMessagesSent, getMetricsCollector, getMetricsWindow, getMinSizeReceived, getMinSizeSent, getQueueSize, getResponseCodeTable, getSessionContext, getTimeoutsReceiving, getTimeoutsSending, getTransportInDescription, getTransportName, handleException, handleIncomingMessage, logException, maintenenceShutdown, pause, resetStatistics, resumepublic final void init(org.apache.axis2.context.ConfigurationContext cfgCtx,
org.apache.axis2.description.TransportInDescription transportIn)
throws org.apache.axis2.AxisFault
AbstractTransportListenerinit in interface org.apache.axis2.transport.TransportListenerinit in class AbstractTransportListenercfgCtx - the axis configuration contexttransportIn - the transport-in descriptionorg.apache.axis2.AxisFault - on errorprotected abstract void doInit()
throws org.apache.axis2.AxisFault
AbstractTransportListener and before the first endpoint is created, i.e. before the
first call to createEndpoint().org.apache.axis2.AxisFaultpublic void start()
throws org.apache.axis2.AxisFault
start in interface org.apache.axis2.transport.TransportListenerstart in class AbstractTransportListenerorg.apache.axis2.AxisFaultpublic void stop()
throws org.apache.axis2.AxisFault
stop in interface org.apache.axis2.transport.TransportListenerstop in class AbstractTransportListenerorg.apache.axis2.AxisFaultpublic org.apache.axis2.addressing.EndpointReference[] getEPRsForService(String serviceName, String ip) throws org.apache.axis2.AxisFault
getEPRsForService in interface org.apache.axis2.transport.TransportListenergetEPRsForService in class AbstractTransportListenerorg.apache.axis2.AxisFaultpublic final Collection<E> getEndpoints()
protected abstract E createEndpoint()
protected final void startListeningForService(org.apache.axis2.description.AxisService service)
throws org.apache.axis2.AxisFault
startListeningForService in class AbstractTransportListenerorg.apache.axis2.AxisFaultprotected abstract void startEndpoint(E endpoint) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFaultprotected final void stopListeningForService(org.apache.axis2.description.AxisService service)
stopListeningForService in class AbstractTransportListenerprotected abstract void stopEndpoint(E endpoint)
Copyright © 2004–2018 The Apache Software Foundation. All rights reserved.