|
||||||||||
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
Servlet implementing the HTTP and HTTPS transport. Note that this class doesn't implement
TransportListener
. There are two reasons for this:
TransportListener
for each protocol, but this servlet
may implement both HTTP and HTTPS.
TransportListener.destroy()
and
Servlet.destroy()
.
TransportListener
implementation is provided by AxisServletListener
. An
instance of that class must be declared in axis2.xml for each protocol (HTTP/HTTPS) that
the servlet should accept.
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 String |
CONFIGURATION_CONTEXT
|
protected String |
contextRoot
|
protected boolean |
disableREST
|
protected ServletConfig |
servletConfig
|
static String |
SESSION_ID
|
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 |
protected Map<String,String> |
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(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 |
initGetRequestProcessors(ServletConfig config)
Initialize HTTP GET request processors |
protected void |
initParams()
Initializes the Axis2 parameters. |
protected void |
initTransports()
Initialize HTTP transports |
protected void |
showRestDisabledErrorMessage(HttpServletResponse response)
Private method that deals with disabling of REST support. |
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 transient ListingAgent agent
protected transient String contextRoot
protected boolean disableREST
Constructor Detail |
---|
public AxisServlet()
Method Detail |
---|
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doPost
in class HttpServlet
request
- response
-
ServletException
IOException
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doGet
in class HttpServlet
request
- response
-
ServletException
IOException
protected void doDelete(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doDelete
in class HttpServlet
request
- response
-
ServletException
IOException
protected void doPut(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doPut
in class HttpServlet
request
- response
-
ServletException
IOException
protected void showRestDisabledErrorMessage(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 Servlet
init
in class GenericServlet
config
- The ServletConfig
ServletException
protected void initGetRequestProcessors(ServletConfig config)
config
- The ServletConfig of this Servletprotected void initTransports() throws AxisFault
AxisFault
- If an error occurs while initializing transportspublic void destroy()
destroy
in interface Servlet
destroy
in class GenericServlet
protected void initParams()
public void init() throws ServletException
init
in class GenericServlet
ServletException
protected ConfigurationContext initConfigContext(ServletConfig config) throws ServletException
config
- Servlet configuration
ServletException
public void initContextRoot(HttpServletRequest req)
req
- protected Map<String,String> getTransportHeaders(HttpServletRequest req)
req
-
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
-
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |