Package org.apache.axis2.kernel
Interface TransportListener
-
- All Known Implementing Classes:
AbstractDatagramTransportListener,AbstractPollingTransportListener,AbstractTransportListener,AbstractTransportListenerEx,AxisServletListener,JMSListener,LifecycleFixTransportListenerProxy,MailTransportListener,SimpleHTTPServer,TCPTransportListener,UDPListener,XMPPListener
public interface TransportListenerClass TransportListener
-
-
Field Summary
Fields Modifier and Type Field Description static StringHOST_ADDRESSstatic StringPARAM_PORT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddestroy()EndpointReference[]getEPRsForService(String serviceName, String ip)Get the endpoint references for a given service.SessionContextgetSessionContext(MessageContext messageContext)To get the sessionContext transport dependent manner.voidinit(ConfigurationContext axisConf, TransportInDescription transprtIn)voidstart()voidstop()
-
-
-
Field Detail
-
PARAM_PORT
static final String PARAM_PORT
- See Also:
- Constant Field Values
-
HOST_ADDRESS
static final String HOST_ADDRESS
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
void init(ConfigurationContext axisConf, TransportInDescription transprtIn) throws AxisFault
- Throws:
AxisFault
-
getEPRsForService
EndpointReference[] getEPRsForService(String serviceName, String ip) throws AxisFault
Get the endpoint references for a given service. These are the addresses that a client can use to send requests to the given service through this transport.- Parameters:
serviceName- TODO: this is actually not simply the service name!ip- The host name or IP address of the local host. The implementation should use this information instead ofInetAddress.getLocalHost(). The value of this parameter may benull, in which case the implementation should useUtils.getIpAddress( org.apache.axis2.engine.AxisConfiguration).- Returns:
- an array of endpoint references for the given service
- Throws:
AxisFault
-
getSessionContext
SessionContext getSessionContext(MessageContext messageContext)
To get the sessionContext transport dependent manner. So that transport listener can return its own implementation of session managment- Parameters:
messageContext- : MessageContext which has all the relavent data- Returns:
- SessionContext
-
destroy
void destroy()
-
-