Package org.apache.axis2.kernel
Interface TransportListener
public interface TransportListener
Class TransportListener
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()getEPRsForService(String serviceName, String ip) Get the endpoint references for a given service.getSessionContext(MessageContext messageContext) To get the sessionContext transport dependent manner.voidinit(ConfigurationContext axisConf, TransportInDescription transprtIn) voidstart()voidstop()
-
Field Details
-
PARAM_PORT
- See Also:
-
HOST_ADDRESS
- See Also:
-
-
Method Details
-
init
- Throws:
AxisFault
-
start
- Throws:
AxisFault
-
stop
- Throws:
AxisFault
-
getEPRsForService
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
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()
-