|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.axis2.transport.http.AxisServlet
public class AxisServlet
Class AxisServlet
| Nested Class Summary | |
|---|---|
class |
AxisServlet.ProcessRESTRequest
Ues in processing REST related Requests. |
protected class |
AxisServlet.ServletRequestResponseTransport
|
| Field Summary | |
|---|---|
protected AxisConfiguration |
axisConfiguration
|
protected ConfigurationContext |
configContext
|
static String |
CONFIGURATION_CONTEXT
|
protected boolean |
disableREST
|
protected ServletConfig |
servletConfig
|
static String |
SESSION_ID
|
| Fields inherited from interface org.apache.axis2.transport.TransportListener |
|---|
HOST_ADDRESS, PARAM_PORT |
| Constructor Summary | |
|---|---|
AxisServlet()
|
|
| Method Summary | |
|---|---|
protected MessageContext |
createMessageContext(HttpServletRequest req,
HttpServletResponse resp)
This method assumes, that the created MessageContext will be used in only SOAP invocation. |
protected MessageContext |
createMessageContext(HttpServletRequest request,
HttpServletResponse response,
boolean invocationType)
|
void |
destroy()
distroy the ConfigurationContext |
protected void |
disableRESTErrorMessage(HttpServletResponse response)
Private method that deals with disabling of REST support. |
protected void |
doDelete(HttpServletRequest request,
HttpServletResponse response)
Implementation of DELETE interface |
protected void |
doGet(HttpServletRequest request,
HttpServletResponse response)
Implementation for GET interface |
protected void |
doPost(HttpServletRequest request,
HttpServletResponse response)
Implementaion of POST interface |
protected void |
doPut(HttpServletRequest request,
HttpServletResponse response)
Implementation of PUT interface |
EndpointReference |
getEPRForService(String serviceName,
String ip)
|
EndpointReference[] |
getEPRsForService(String serviceName,
String ip)
|
SessionContext |
getSessionContext(MessageContext messageContext)
Transport session management. |
protected Map |
getTransportHeaders(HttpServletRequest req)
Get all transport headers. |
protected void |
handleFault(MessageContext msgContext,
OutputStream out,
AxisFault e)
|
void |
init()
Convenient method to re-initialize the ConfigurationContext |
void |
init(ConfigurationContext axisConf,
TransportInDescription transprtIn)
init(); start() and stop() wouldn't do anything. |
void |
init(ServletConfig config)
Main init method |
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()
Initializes the Axis2 parameters. |
void |
start()
|
void |
stop()
|
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doHead, doOptions, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CONFIGURATION_CONTEXT
public static final String SESSION_ID
protected transient ConfigurationContext configContext
protected transient AxisConfiguration axisConfiguration
protected transient ServletConfig servletConfig
protected boolean disableREST
| Constructor Detail |
|---|
public AxisServlet()
| Method Detail |
|---|
protected void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
doPost in class HttpServletrequest - response -
ServletException
IOException
protected void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
doGet in class HttpServletrequest - response -
ServletException
IOException
protected void doDelete(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
doDelete in class HttpServletrequest - response -
ServletException
IOException
protected void doPut(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
doPut in class HttpServletrequest - response -
ServletException
IOException
protected void disableRESTErrorMessage(HttpServletResponse response)
throws IOException
response -
IOException
protected void handleFault(MessageContext msgContext,
OutputStream out,
AxisFault e)
throws AxisFault
AxisFault
public void init(ServletConfig config)
throws ServletException
init in interface Servletinit in class GenericServletconfig -
ServletExceptionpublic void destroy()
destroy in interface Servletdestroy in interface TransportListenerdestroy in class GenericServletprotected void initParams()
public void init()
throws ServletException
init in class GenericServletServletException
protected ConfigurationContext initConfigContext(ServletConfig config)
throws ServletException
config - Servlet configuration
ServletExceptionpublic void initContextRoot(HttpServletRequest req)
req - protected Map getTransportHeaders(HttpServletRequest req)
req -
public EndpointReference getEPRForService(String serviceName,
String ip)
throws AxisFault
getEPRForService in interface TransportListenerAxisFault
public EndpointReference[] getEPRsForService(String serviceName,
String ip)
throws AxisFault
getEPRsForService in interface TransportListenerAxisFault
public void init(ConfigurationContext axisConf,
TransportInDescription transprtIn)
throws AxisFault
init in interface TransportListeneraxisConf - transprtIn -
AxisFault
public void start()
throws AxisFault
start in interface TransportListenerAxisFault
public void stop()
throws AxisFault
stop in interface TransportListenerAxisFault
protected MessageContext createMessageContext(HttpServletRequest request,
HttpServletResponse response,
boolean invocationType)
throws IOException
request - response - invocationType - : If invocationType=true; then this will be used in SOAP message
invocation. If invocationType=false; then this will be used in REST message invocation.
IOException
protected MessageContext createMessageContext(HttpServletRequest req,
HttpServletResponse resp)
throws IOException
req - resp -
IOExceptionpublic SessionContext getSessionContext(MessageContext messageContext)
getSessionContext in interface TransportListenermessageContext -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||