|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectHttpServlet
org.jboss.axis.transport.http.AxisServletBase
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.
Field Summary | |
protected static java.lang.String |
ATTR_AXIS_ENGINE
name of the axis engine to use in the servlet context |
protected AxisServer (src) |
axisServer
per-instance cache of the axis server |
Constructor Summary | |
AxisServletBase()
|
Method Summary | |
protected static void |
decLockCounter()
thread safe lock counter decrement |
void |
destroy()
Destroy method is called when the servlet is going away. |
AxisServer (src) |
getEngine()
get the engine for this servlet from cache or context |
static AxisServer (src) |
getEngine(HttpServlet servlet)
This is a uniform method of initializing AxisServer in a servlet context. |
protected static java.util.Map |
getEngineEnvironment(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(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. |
ServletContext |
getServletContext()
what is the servlet context |
protected java.lang.String |
getWebappBase(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(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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected AxisServer (src) axisServer
protected static final java.lang.String ATTR_AXIS_ENGINE
Constructor Detail |
public AxisServletBase()
Method Detail |
public void init()
public void destroy()
public AxisServer (src) getEngine() throws AxisFault (src)
AxisFault (src)
public static AxisServer (src) getEngine(HttpServlet servlet) throws AxisFault (src)
AxisFault (src)
protected static java.util.Map getEngineEnvironment(HttpServlet servlet)
servlet
-
public static int getLoadCounter()
protected static void incLockCounter()
protected static void decLockCounter()
protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, java.io.IOException
req
- requestresp
- response
ServletException
- something went wrong
java.io.IOException
- something different went wrongprotected java.lang.String getWebappBase(HttpServletRequest request)
request
- request containing http://foobar/axis/services/something
public ServletContext getServletContext()
protected java.lang.String getWebInfPath()
protected java.lang.String getHomeDir()
protected java.lang.String getOption(ServletContext context, java.lang.String param, java.lang.String dephault)
public boolean isDevelopment()
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |