org.apache.axis.transport.http
Class AxisServletBase
HttpServlet
org.apache.axis.transport.http.AxisServletBase
public class AxisServletBase
extends HttpServlet
Base class for servlets used in axis, has common methods
to get and save the engine to a common location, currently the
webapp's context, though some alternate persistence mechanism is always
possible. Also has a load counter shared by all servlets; tracks the
# of active http requests open to any of the subclasses.
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(HttpServlet servlet) - This is a uniform method of initializing AxisServer in a servlet
context.
|
protected static Map | getEngineEnvironment(HttpServlet servlet) - extract information from the servlet configuration files
|
protected String | getHomeDir() - what is the root dir of the applet?
|
static int | getLoadCounter() - get a count of the # of services running.
|
protected String | getOption(ServletContext context, String param, String dephault) - Retrieve option, in order of precedence:
(Managed) System property (see discovery.ManagedProperty),
servlet init param, context init param.
|
ServletContext | getServletContext() - what is the servlet context
|
protected String | getWebInfPath() - accessor to webinf
|
protected String | getWebappBase(HttpServletRequest request) - extract the base of our webapp from an inbound request
|
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(HttpServletRequest req, 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.
|
ATTR_AXIS_ENGINE
protected static final String ATTR_AXIS_ENGINE
name of the axis engine to use in the servlet context
axisServer
protected AxisServer axisServer
per-instance cache of the axis server
decLockCounter
protected static void decLockCounter()
thread safe lock counter decrement
destroy
public void destroy()
Destroy method is called when the servlet is going away. Pass this
down to the AxisEngine to let it clean up... But don't create the
engine if it hasn't already been created.
getEngine
public AxisServer getEngine()
throws AxisFault
get the engine for this servlet from cache or context
getEngine
public static AxisServer getEngine(HttpServlet servlet)
throws AxisFault
This is a uniform method of initializing AxisServer in a servlet
context.
getEngineEnvironment
protected static Map getEngineEnvironment(HttpServlet servlet)
extract information from the servlet configuration files
getHomeDir
protected String getHomeDir()
what is the root dir of the applet?
getLoadCounter
public static int getLoadCounter()
get a count of the # of services running. This is only
ever an approximate number in a busy system
- The TotalServiceCount value
getOption
protected String getOption(ServletContext context,
String param,
String dephault)
Retrieve option, in order of precedence:
(Managed) System property (see discovery.ManagedProperty),
servlet init param, context init param.
Use of system properties is discouraged in production environments,
as it overrides everything else.
getServletContext
public ServletContext getServletContext()
what is the servlet context
- get the context from the servlet config
getWebInfPath
protected String getWebInfPath()
accessor to webinf
- path to WEB-INF/ in the local filesystem
getWebappBase
protected String getWebappBase(HttpServletRequest request)
extract the base of our webapp from an inbound request
request
- request containing http://foobar/axis/services/something
- some URL like http://foobar:8080/axis/
incLockCounter
protected static void incLockCounter()
thread safe lock counter increment
init
public void init()
throws javax.servlet.ServletException
our initialize routine; subclasses should call this if they override it
isDevelopment
public boolean isDevelopment()
probe for the system being 'production'
service
protected void service(HttpServletRequest req,
HttpServletResponse resp)
throws ServletException,
IOException
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.
req
- requestresp
- response
Copyright B) 2005 Apache Web Services Project. All Rights Reserved.