Class LifecycleFixTransportListenerProxy
- java.lang.Object
-
- org.apache.axis2.transport.testkit.util.LifecycleFixTransportListenerProxy
-
- All Implemented Interfaces:
TransportListener
public class LifecycleFixTransportListenerProxy extends Object implements TransportListener
-
-
Field Summary
-
Fields inherited from interface org.apache.axis2.kernel.TransportListener
HOST_ADDRESS, PARAM_PORT
-
-
Constructor Summary
Constructors Constructor Description LifecycleFixTransportListenerProxy(TransportListener target, int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
EndpointReference[]
getEPRForService(String arg0, String arg1)
EndpointReference[]
getEPRsForService(String arg0, String arg1)
Get the endpoint references for a given service.SessionContext
getSessionContext(MessageContext arg0)
To get the sessionContext transport dependent manner.void
init(ConfigurationContext arg0, TransportInDescription arg1)
void
start()
void
stop()
-
-
-
Constructor Detail
-
LifecycleFixTransportListenerProxy
public LifecycleFixTransportListenerProxy(TransportListener target, int port)
-
-
Method Detail
-
destroy
public void destroy()
- Specified by:
destroy
in interfaceTransportListener
-
getEPRForService
public EndpointReference[] getEPRForService(String arg0, String arg1) throws AxisFault
- Throws:
AxisFault
-
getEPRsForService
public EndpointReference[] getEPRsForService(String arg0, String arg1) throws AxisFault
Description copied from interface:TransportListener
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.- Specified by:
getEPRsForService
in interfaceTransportListener
- Parameters:
arg0
- TODO: this is actually not simply the service name!arg1
- 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
public SessionContext getSessionContext(MessageContext arg0)
Description copied from interface:TransportListener
To get the sessionContext transport dependent manner. So that transport listener can return its own implementation of session managment- Specified by:
getSessionContext
in interfaceTransportListener
- Parameters:
arg0
- : MessageContext which has all the relavent data- Returns:
- SessionContext
-
init
public void init(ConfigurationContext arg0, TransportInDescription arg1) throws AxisFault
- Specified by:
init
in interfaceTransportListener
- Throws:
AxisFault
-
start
public void start() throws AxisFault
- Specified by:
start
in interfaceTransportListener
- Throws:
AxisFault
-
stop
public void stop() throws AxisFault
- Specified by:
stop
in interfaceTransportListener
- Throws:
AxisFault
-
-