|
||||||||||
| 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 | |
|---|---|
protected class |
AxisServlet.RestRequestProcessor
Ues in processing REST related Requests. |
protected class |
AxisServlet.ServletRequestResponseTransport
|
| Field Summary | |
|---|---|
protected ListingAgent |
agent
|
protected AxisConfiguration |
axisConfiguration
|
protected ConfigurationContext |
configContext
|
static java.lang.String |
CONFIGURATION_CONTEXT
|
protected java.lang.String |
contextRoot
|
protected boolean |
disableREST
|
protected javax.servlet.ServletConfig |
servletConfig
|
static java.lang.String |
SESSION_ID
|
| Fields inherited from interface org.apache.axis2.transport.TransportListener |
|---|
HOST_ADDRESS, PARAM_PORT |
| Constructor Summary | |
|---|---|
AxisServlet()
|
|
| Method Summary | |
|---|---|
protected MessageContext |
createMessageContext(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
This method assumes, that the created MessageContext will be used in only SOAP invocation. |
protected MessageContext |
createMessageContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean invocationType)
|
void |
destroy()
distroy the ConfigurationContext |
protected void |
doDelete(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Implementation of DELETE interface |
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Implementation for GET interface |
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Implementaion of POST interface |
protected void |
doPut(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Implementation of PUT interface |
EndpointReference |
getEPRForService(java.lang.String serviceName,
java.lang.String ip)
|
EndpointReference[] |
getEPRsForService(java.lang.String serviceName,
java.lang.String ip)
|
SessionContext |
getSessionContext(MessageContext messageContext)
Transport session management. |
protected java.util.Map |
getTransportHeaders(javax.servlet.http.HttpServletRequest req)
Get all transport headers. |
protected void |
handleFault(MessageContext msgContext,
java.io.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(javax.servlet.ServletConfig config)
Main init method |
protected ConfigurationContext |
initConfigContext(javax.servlet.ServletConfig config)
Initialize the Axis configuration context |
void |
initContextRoot(javax.servlet.http.HttpServletRequest req)
Set the context root if it is not set already. |
protected void |
initParams()
Initializes the Axis2 parameters. |
protected void |
showRestDisabledErrorMessage(javax.servlet.http.HttpServletResponse response)
Private method that deals with disabling of REST support. |
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 java.lang.String CONFIGURATION_CONTEXT
public static final java.lang.String SESSION_ID
protected transient ConfigurationContext configContext
protected transient AxisConfiguration axisConfiguration
protected transient javax.servlet.ServletConfig servletConfig
protected transient ListingAgent agent
protected transient java.lang.String contextRoot
protected boolean disableREST
| Constructor Detail |
|---|
public AxisServlet()
| Method Detail |
|---|
protected void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
doPost in class javax.servlet.http.HttpServletrequest - response -
javax.servlet.ServletException
java.io.IOException
protected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
doGet in class javax.servlet.http.HttpServletrequest - response -
javax.servlet.ServletException
java.io.IOException
protected void doDelete(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
doDelete in class javax.servlet.http.HttpServletrequest - response -
javax.servlet.ServletException
java.io.IOException
protected void doPut(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
doPut in class javax.servlet.http.HttpServletrequest - response -
javax.servlet.ServletException
java.io.IOException
protected void showRestDisabledErrorMessage(javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
response -
java.io.IOException
protected void handleFault(MessageContext msgContext,
java.io.OutputStream out,
AxisFault e)
throws AxisFault
AxisFault
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletconfig -
javax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.Servletdestroy in interface TransportListenerdestroy in class javax.servlet.GenericServletprotected void initParams()
public void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletException
protected ConfigurationContext initConfigContext(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
config - Servlet configuration
javax.servlet.ServletExceptionpublic void initContextRoot(javax.servlet.http.HttpServletRequest req)
req - protected java.util.Map getTransportHeaders(javax.servlet.http.HttpServletRequest req)
req -
public EndpointReference getEPRForService(java.lang.String serviceName,
java.lang.String ip)
throws AxisFault
getEPRForService in interface TransportListenerAxisFault
public EndpointReference[] getEPRsForService(java.lang.String serviceName,
java.lang.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(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean invocationType)
throws java.io.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.
java.io.IOException
protected MessageContext createMessageContext(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws java.io.IOException
req - resp -
java.io.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 | |||||||||