org.apache.axis2.transport.http
Class AxisServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
AxisServlet
public AxisServlet()
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