|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectHttpServlet
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 AxisConfiguration |
axisConfiguration
|
protected ConfigurationContext |
configContext
|
static java.lang.String |
CONFIGURATION_CONTEXT
|
protected boolean |
disableREST
|
protected 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(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 |
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(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(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(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. |
protected void |
showRestDisabledErrorMessage(HttpServletResponse response)
Private method that deals with disabling of REST support. |
void |
start()
|
void |
stop()
|
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 ServletConfig servletConfig
protected boolean disableREST
Constructor Detail |
---|
public AxisServlet()
Method Detail |
---|
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
request
- response
-
ServletException
java.io.IOException
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
request
- response
-
ServletException
java.io.IOException
protected void doDelete(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
request
- response
-
ServletException
java.io.IOException
protected void doPut(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
request
- response
-
ServletException
java.io.IOException
protected void showRestDisabledErrorMessage(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(ServletConfig config) throws ServletException
config
-
ServletException
public void destroy()
destroy
in interface TransportListener
protected void initParams()
public void init() throws ServletException
ServletException
protected ConfigurationContext initConfigContext(ServletConfig config) throws ServletException
config
- Servlet configuration
ServletException
public void initContextRoot(HttpServletRequest req)
req
- protected java.util.Map getTransportHeaders(HttpServletRequest req)
req
-
public EndpointReference getEPRForService(java.lang.String serviceName, java.lang.String ip) throws AxisFault
getEPRForService
in interface TransportListener
AxisFault
public EndpointReference[] getEPRsForService(java.lang.String serviceName, java.lang.String ip) throws AxisFault
getEPRsForService
in interface TransportListener
AxisFault
public void init(ConfigurationContext axisConf, TransportInDescription transprtIn) throws AxisFault
init
in interface TransportListener
axisConf
- transprtIn
-
AxisFault
public void start() throws AxisFault
start
in interface TransportListener
AxisFault
public void stop() throws AxisFault
stop
in interface TransportListener
AxisFault
protected MessageContext createMessageContext(HttpServletRequest request, 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(HttpServletRequest req, HttpServletResponse resp) throws java.io.IOException
req
- resp
-
java.io.IOException
public SessionContext getSessionContext(MessageContext messageContext)
getSessionContext
in interface TransportListener
messageContext
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |