org.apache.axis.transport.http
public class AxisServletBase extends javax.servlet.http.HttpServlet
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
ATTR_AXIS_ENGINE
name of the axis engine to use in the servlet context
|
protected AxisServer |
axisServer
per-instance cache of the axis server
|
| Constructor and Description |
|---|
AxisServletBase() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
decLockCounter()
thread safe lock counter decrement
|
void |
destroy()
Destroy method is called when the servlet is going away.
|
AxisServer |
getEngine()
get the engine for this servlet from cache or context
|
static AxisServer |
getEngine(javax.servlet.http.HttpServlet servlet)
This is a uniform method of initializing AxisServer in a servlet
context.
|
protected static java.util.Map |
getEngineEnvironment(javax.servlet.http.HttpServlet servlet)
extract information from the servlet configuration files
|
protected java.lang.String |
getHomeDir()
what is the root dir of the applet?
|
static int |
getLoadCounter()
get a count of the # of services running.
|
protected java.lang.String |
getOption(javax.servlet.ServletContext context,
java.lang.String param,
java.lang.String dephault)
Retrieve option, in order of precedence:
(Managed) System property (see discovery.ManagedProperty),
servlet init param, context init param.
|
javax.servlet.ServletContext |
getServletContext()
what is the servlet context
|
protected java.lang.String |
getWebappBase(javax.servlet.http.HttpServletRequest request)
extract the base of our webapp from an inbound request
|
protected java.lang.String |
getWebInfPath()
accessor to webinf
|
protected static void |
incLockCounter()
thread safe lock counter increment
|
void |
init()
our initialize routine; subclasses should call this if they override it
|
boolean |
isDevelopment()
probe for the system being 'production'
|
protected void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
subclass of service method that tracks entry count; calls the
parent's implementation to have the http method cracked and delegated
to the doGet, doPost method.
|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceprotected AxisServer axisServer
protected static final java.lang.String ATTR_AXIS_ENGINE
public void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletpublic AxisServer getEngine() throws AxisFault
AxisFaultpublic static AxisServer getEngine(javax.servlet.http.HttpServlet servlet) throws AxisFault
AxisFaultprotected static java.util.Map getEngineEnvironment(javax.servlet.http.HttpServlet servlet)
servlet - public static int getLoadCounter()
protected static void incLockCounter()
protected static void decLockCounter()
protected void service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
service in class javax.servlet.http.HttpServletreq - requestresp - responsejavax.servlet.ServletException - something went wrongjava.io.IOException - something different went wrongprotected java.lang.String getWebappBase(javax.servlet.http.HttpServletRequest request)
request - request containing http://foobar/axis/services/somethingpublic javax.servlet.ServletContext getServletContext()
getServletContext in interface javax.servlet.ServletConfiggetServletContext in class javax.servlet.GenericServletprotected java.lang.String getWebInfPath()
protected java.lang.String getHomeDir()
protected java.lang.String getOption(javax.servlet.ServletContext context,
java.lang.String param,
java.lang.String dephault)
public boolean isDevelopment()
Copyright ? 2005 Apache Web Services Project. All Rights Reserved.