|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet org.apache.avalon.excalibur.component.servlet.AbstractServiceManagerServlet
Abstract Servlet which can be used with the ExcaliburServiceManagerServlet to enable servlets to have access to a ServiceManager as well as logging and instrumentation features.
Field Summary |
Fields inherited from interface org.apache.excalibur.instrument.Instrumentable |
EMPTY_INSTRUMENT_ARRAY, EMPTY_INSTRUMENTABLE_ARRAY |
Constructor Summary | |
AbstractServiceManagerServlet(java.lang.String referenceName)
Deprecated. Create a new AbstractServiceManagerServlet. |
Method Summary | |
protected void |
addChildInstrumentable(Instrumentable child)
Deprecated. Adds a child Instrumentable to the list of child Instrumentables published by the component. |
protected void |
addInstrument(Instrument instrument)
Deprecated. Adds an Instrument to the list of Instruments published by the component. |
void |
destroy()
Deprecated. Called by the servlet container to indicate to a servlet that the servlet is being taken out of service. |
Instrumentable[] |
getChildInstrumentables()
Deprecated. Any Object which implements Instrumentable can also make use of other Instrumentable child objects. |
java.lang.String |
getInstrumentableName()
Deprecated. Gets the name of the Instrumentable. |
Instrument[] |
getInstruments()
Deprecated. Obtain a reference to all the Instruments that the Instrumentable object wishes to expose. |
protected Logger |
getLogger()
Deprecated. Obtain a reference to the servlet's logger. |
ServiceManager |
getServiceManager()
Deprecated. Returns the current ServiceManager. |
void |
init(javax.servlet.ServletConfig config)
Deprecated. Called by the servlet container to initialize a servlet before it is put into service. |
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated. Receives standard HTTP requests from the public service method and dispatches them to the doXXX methods defined in this class. |
void |
setInstrumentableName(java.lang.String name)
Deprecated. Sets the name for the Instrumentable. |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractServiceManagerServlet(java.lang.String referenceName)
referenceName
- A name which does not include any spaces or periods
that will be used to name the logger category and
instrumentable which represents this servlet.Method Detail |
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
config
- ServletConfig object for the servlet.
javax.servlet.ServletException
- If there are any initialization problems.public void destroy()
destroy
in interface javax.servlet.Servlet
public void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
request
- The HttpServletRequest object that contains the request the
client made of the servlet.response
- The HttpServletResponse object that contains the response
the servlet returns to the client.
javax.servlet.ServletException
java.io.IOException
public final java.lang.String getInstrumentableName()
getInstrumentableName
in interface Instrumentable
public final void setInstrumentableName(java.lang.String name)
This value may be set by a parent Instrumentable, or by the InstrumentManager using the value of the 'instrumentable' attribute in the configuration of the component.
setInstrumentableName
in interface Instrumentable
name
- The name used to identify a Instrumentable.public final Instrumentable[] getChildInstrumentables()
getChildInstrumentables
in interface Instrumentable
public final Instrument[] getInstruments()
getInstruments
in interface Instrumentable
protected void addInstrument(Instrument instrument)
instrument
- Instrument to publish.protected void addChildInstrumentable(Instrumentable child)
Note that Child Instrumentables must be named by the caller using the setInstrumentableName method.
child
- Child Instrumentable to publish.protected Logger getLogger()
public ServiceManager getServiceManager()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |