org.apache.axis.transport.http
public class AxisServletBase extends HttpServlet
Field Summary | |
---|---|
protected static 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 |
Method Summary | |
---|---|
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 | getWebappBase(HttpServletRequest request)
extract the base of our webapp from an inbound request
|
protected 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(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. |
UNKNOWN: Fixme for multiple servlets. This has always been slightly broken (the context's copy stayed around), but now we have extracted it into a superclass it is blatantly broken.
Returns:
Throws: AxisFault
UNKNOWN: add catch for not being able to cast the context attr to an engine and reinit the engine if so.
Parameters: servlet
Returns:
Returns: path of root dir
Returns: The TotalServiceCount value
Returns: get the context from the servlet config
Parameters: request request containing http://foobar/axis/services/something
Returns: some URL like http://foobar:8080/axis/
Returns: path to WEB-INF/ in the local filesystem
Returns: true for a dev system.
Parameters: req request resp response
Throws: ServletException something went wrong IOException something different went wrong