org.apache.axis2.transport.http
Class AxisServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.apache.axis2.transport.http.AxisServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig, TransportListener

public class AxisServlet
extends HttpServlet
implements TransportListener

Class AxisServlet

See Also:
Serialized Form

Field Summary
protected  AxisConfiguration axisConfiguration
           
protected  ConfigurationContext configContext
           
static String CONFIGURATION_CONTEXT
           
protected  ListingAgent lister
           
static String SESSION_ID
           
 
Fields inherited from interface org.apache.axis2.transport.TransportListener
HOST_ADDRESS, PARAM_PORT
 
Constructor Summary
AxisServlet()
           
 
Method Summary
protected  MessageContext createAndSetInitialParamsToMsgCtxt(Object sessionContext, MessageContext msgContext, HttpServletResponse httpServletResponse, HttpServletRequest httpServletRequest)
           
 void destroy()
           
protected  void doGet(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)
          Method doGet
protected  void doPost(HttpServletRequest req, HttpServletResponse res)
          Method doPost
 EndpointReference getEPRForService(String serviceName, String ip)
           
protected  HashMap getHTTPParameters(HttpServletRequest httpServletRequest)
           
protected  Object getSessionContext(HttpServletRequest httpServletRequest)
           
protected  Map getTransportHeaders(HttpServletRequest req)
           
protected  void handleFault(MessageContext msgContext, OutputStream out, AxisFault e)
           
 void init(ConfigurationContext axisConf, TransportInDescription transprtIn)
          To initilze as TransportListener , not as Servlet
 void init(ServletConfig config)
          Method init
protected  ConfigurationContext initConfigContext(ServletConfig config)
          Initialize the Axis configuration context
 void start()
           
 void stop()
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIGURATION_CONTEXT

public static final String CONFIGURATION_CONTEXT
See Also:
Constant Field Values

SESSION_ID

public static final String SESSION_ID
See Also:
Constant Field Values

configContext

protected transient ConfigurationContext configContext

axisConfiguration

protected transient AxisConfiguration axisConfiguration

lister

protected ListingAgent lister
Constructor Detail

AxisServlet

public AxisServlet()
Method Detail

createAndSetInitialParamsToMsgCtxt

protected MessageContext createAndSetInitialParamsToMsgCtxt(Object sessionContext,
                                                            MessageContext msgContext,
                                                            HttpServletResponse httpServletResponse,
                                                            HttpServletRequest httpServletRequest)
                                                     throws AxisFault
Throws:
AxisFault

destroy

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

doGet

protected void doGet(HttpServletRequest httpServletRequest,
                     HttpServletResponse httpServletResponse)
              throws ServletException,
                     IOException
Method doGet

Parameters:
httpServletRequest -
httpServletResponse -
Throws:
ServletException
IOException

doPost

protected void doPost(HttpServletRequest req,
                      HttpServletResponse res)
               throws ServletException,
                      IOException
Method doPost

Parameters:
req -
res -
Throws:
ServletException
IOException

handleFault

protected void handleFault(MessageContext msgContext,
                           OutputStream out,
                           AxisFault e)
                    throws AxisFault
Throws:
AxisFault

init

public void init(ServletConfig config)
          throws ServletException
Method init

Specified by:
init in interface Servlet
Parameters:
config -
Throws:
ServletException

initConfigContext

protected ConfigurationContext initConfigContext(ServletConfig config)
                                          throws ServletException
Initialize the Axis configuration context

Parameters:
config - Servlet configuration
Throws:
ServletException

getHTTPParameters

protected HashMap getHTTPParameters(HttpServletRequest httpServletRequest)

getSessionContext

protected Object getSessionContext(HttpServletRequest httpServletRequest)

getTransportHeaders

protected Map getTransportHeaders(HttpServletRequest req)

init

public void init(ConfigurationContext axisConf,
                 TransportInDescription transprtIn)
          throws AxisFault
To initilze as TransportListener , not as Servlet

Specified by:
init in interface TransportListener
Parameters:
axisConf -
transprtIn -
Throws:
AxisFault

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

getEPRForService

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