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
- Direct Known Subclasses:
- AxisAdminServlet, AxisRESTServlet
public class AxisServlet
- extends HttpServlet
- implements TransportListener
Class AxisServlet
- See Also:
- Serialized Form
Method Summary |
protected MessageContext |
createAndSetInitialParamsToMsgCtxt(HttpServletResponse resp,
HttpServletRequest req)
|
protected MessageContext |
createMessageContext(HttpServletRequest req,
HttpServletResponse resp)
|
void |
destroy()
|
protected void |
doGet(HttpServletRequest req,
HttpServletResponse resp)
|
protected void |
doPost(HttpServletRequest req,
HttpServletResponse res)
Method doPost |
EndpointReference |
getEPRForService(String serviceName,
String ip)
|
EndpointReference[] |
getEPRsForService(String serviceName,
String ip)
|
protected Map |
getHeaders(HttpServletRequest request)
|
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()
|
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 |
initContextRoot(HttpServletRequest req)
Set the context root if it is not set already. |
protected void |
initParams()
|
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
servletConfig
protected transient ServletConfig servletConfig
enableRESTInAxis2MainServlet
protected boolean enableRESTInAxis2MainServlet
disableREST
protected boolean disableREST
disableSeperateEndpointForREST
protected boolean disableSeperateEndpointForREST
AxisServlet
public AxisServlet()
createAndSetInitialParamsToMsgCtxt
protected MessageContext createAndSetInitialParamsToMsgCtxt(HttpServletResponse resp,
HttpServletRequest req)
throws AxisFault
- Throws:
AxisFault
destroy
public void destroy()
- Specified by:
destroy
in interface Servlet
- Overrides:
destroy
in class GenericServlet
initContextRoot
public void initContextRoot(HttpServletRequest req)
- Set the context root if it is not set already.
- Parameters:
req
-
doGet
protected void doGet(HttpServletRequest req,
HttpServletResponse resp)
throws ServletException,
IOException
- Overrides:
doGet
in class HttpServlet
- Throws:
ServletException
IOException
doPost
protected void doPost(HttpServletRequest req,
HttpServletResponse res)
throws ServletException,
IOException
- Method doPost
- Overrides:
doPost
in class HttpServlet
- 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
- Overrides:
init
in class GenericServlet
- Parameters:
config
-
- Throws:
ServletException
initParams
protected void initParams()
init
public void init()
throws ServletException
- Overrides:
init
in class GenericServlet
- 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
getEPRsForService
public EndpointReference[] getEPRsForService(String serviceName,
String ip)
throws AxisFault
- Specified by:
getEPRsForService
in interface TransportListener
- Throws:
AxisFault
createMessageContext
protected MessageContext createMessageContext(HttpServletRequest req,
HttpServletResponse resp)
throws IOException
- Throws:
IOException
getHeaders
protected Map getHeaders(HttpServletRequest request)