Package org.apache.axis2.transport.http
Class AxisServletListener
- java.lang.Object
-
- org.apache.axis2.transport.http.AxisServletListener
-
- All Implemented Interfaces:
TransportListener
public class AxisServletListener extends Object implements TransportListener
TransportListenerimplementation forAxisServlet. There will be one instance of this class for each protocol (HTTP and/or HTTPS) accepted by the servlet.
-
-
Field Summary
-
Fields inherited from interface org.apache.axis2.kernel.TransportListener
HOST_ADDRESS, PARAM_PORT
-
-
Constructor Summary
Constructors Constructor Description AxisServletListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()EndpointReferencegetEPRForService(String serviceName, String ip)EndpointReference[]getEPRsForService(String serviceName, String ip)Get the endpoint references for a given service.intgetPort()SessionContextgetSessionContext(MessageContext messageContext)To get the sessionContext transport dependent manner.voidinit(ConfigurationContext configurationContext, TransportInDescription transportInDescription)voidsetPort(int port)voidstart()voidstop()
-
-
-
Method Detail
-
init
public void init(ConfigurationContext configurationContext, TransportInDescription transportInDescription) throws AxisFault
- Specified by:
initin interfaceTransportListener- Throws:
AxisFault
-
getPort
public int getPort()
-
setPort
public void setPort(int port)
-
start
public void start() throws AxisFault- Specified by:
startin interfaceTransportListener- Throws:
AxisFault
-
stop
public void stop() throws AxisFault- Specified by:
stopin interfaceTransportListener- Throws:
AxisFault
-
getEPRsForService
public EndpointReference[] getEPRsForService(String serviceName, String ip) throws AxisFault
Description copied from interface:TransportListenerGet 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:
getEPRsForServicein interfaceTransportListener- 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
-
getEPRForService
public EndpointReference getEPRForService(String serviceName, String ip) throws AxisFault
- Throws:
AxisFault
-
getSessionContext
public SessionContext getSessionContext(MessageContext messageContext)
Description copied from interface:TransportListenerTo get the sessionContext transport dependent manner. So that transport listener can return its own implementation of session managment- Specified by:
getSessionContextin interfaceTransportListener- Parameters:
messageContext- : MessageContext which has all the relavent data- Returns:
- SessionContext
-
destroy
public void destroy()
- Specified by:
destroyin interfaceTransportListener
-
-