org.apache.axis2.transport.http
Class AxisServletListener

java.lang.Object
  extended by org.apache.axis2.transport.http.AxisServletListener
All Implemented Interfaces:
TransportListener

public class AxisServletListener
extends java.lang.Object
implements TransportListener

TransportListener implementation for AxisServlet. 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.transport.TransportListener
HOST_ADDRESS, PARAM_PORT
 
Constructor Summary
AxisServletListener()
           
 
Method Summary
 void destroy()
           
 EndpointReference getEPRForService(java.lang.String serviceName, java.lang.String ip)
           
 EndpointReference[] getEPRsForService(java.lang.String serviceName, java.lang.String ip)
           
 int getPort()
           
 SessionContext getSessionContext(MessageContext messageContext)
          To get the sessionContext transport dependent manner.
 void init(ConfigurationContext configurationContext, TransportInDescription transportInDescription)
           
 void setPort(int port)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AxisServletListener

public AxisServletListener()
Method Detail

init

public void init(ConfigurationContext configurationContext,
                 TransportInDescription transportInDescription)
          throws AxisFault
Specified by:
init in interface TransportListener
Throws:
AxisFault

getPort

public int getPort()

setPort

public void setPort(int port)

start

public void start()
           throws AxisFault
Specified by:
start in interface TransportListener
Throws:
AxisFault

stop

public void stop()
          throws AxisFault
Specified by:
stop in interface TransportListener
Throws:
AxisFault

getEPRsForService

public EndpointReference[] getEPRsForService(java.lang.String serviceName,
                                             java.lang.String ip)
                                      throws AxisFault
Specified by:
getEPRsForService in interface TransportListener
Throws:
AxisFault

getEPRForService

public EndpointReference getEPRForService(java.lang.String serviceName,
                                          java.lang.String ip)
                                   throws AxisFault
Specified by:
getEPRForService in interface TransportListener
Throws:
AxisFault

getSessionContext

public SessionContext getSessionContext(MessageContext messageContext)
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 interface TransportListener
Parameters:
messageContext - : MessageContext which has all the relavent data
Returns:
SessionContext

destroy

public void destroy()
Specified by:
destroy in interface TransportListener


Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.