|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.avalon.excalibur.component.servlet.AbstractComponentManagerServlet
public abstract class AbstractComponentManagerServlet
Abstract Servlet which can be used with the ExcaliburComponentManagerServlet to enable servlets to have access to a ComponentManager as well as logging and instrumentation features.
| Field Summary | |
|---|---|
private java.util.ArrayList |
m_childList
Deprecated. Stores the child instrumentables during initialization. |
private org.apache.avalon.framework.component.ComponentManager |
m_componentManager
Deprecated. |
private java.lang.String |
m_instrumentableName
Deprecated. Instrumentable Name assigned to this Instrumentable |
private java.util.ArrayList |
m_instrumentList
Deprecated. Stores the instruments during initialization. |
private org.apache.excalibur.instrument.CounterInstrument |
m_instrumentRequests
Deprecated. Counts the number of times the service is requested. |
private org.apache.excalibur.instrument.ValueInstrument |
m_instrumentTime
Deprecated. Records the amount of time execute takes to be processed. |
private org.apache.avalon.framework.logger.Logger |
m_logger
Deprecated. |
private java.lang.String |
m_referenceName
Deprecated. |
private boolean |
m_registered
Deprecated. Flag which is to used to keep track of when the Instrumentable has been registered. |
| Fields inherited from interface org.apache.excalibur.instrument.Instrumentable |
|---|
EMPTY_INSTRUMENT_ARRAY, EMPTY_INSTRUMENTABLE_ARRAY |
| Constructor Summary | |
|---|---|
AbstractComponentManagerServlet(java.lang.String referenceName)
Deprecated. Create a new AbstractComponentManagerServlet. |
|
| Method Summary | |
|---|---|
protected void |
addChildInstrumentable(org.apache.excalibur.instrument.Instrumentable child)
Deprecated. Adds a child Instrumentable to the list of child Instrumentables published by the component. |
protected void |
addInstrument(org.apache.excalibur.instrument.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. |
org.apache.excalibur.instrument.Instrumentable[] |
getChildInstrumentables()
Deprecated. Any Object which implements Instrumentable can also make use of other Instrumentable child objects. |
org.apache.avalon.framework.component.ComponentManager |
getComponentManager()
Deprecated. Returns the current ComponentManager. |
java.lang.String |
getInstrumentableName()
Deprecated. Gets the name of the Instrumentable. |
org.apache.excalibur.instrument.Instrument[] |
getInstruments()
Deprecated. Obtain a reference to all the Instruments that the Instrumentable object wishes to expose. |
protected org.apache.avalon.framework.logger.Logger |
getLogger()
Deprecated. Obtain a reference to the servlet's logger. |
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 |
| Field Detail |
|---|
private java.lang.String m_referenceName
private org.apache.avalon.framework.component.ComponentManager m_componentManager
private org.apache.avalon.framework.logger.Logger m_logger
private java.lang.String m_instrumentableName
private java.util.ArrayList m_instrumentList
private java.util.ArrayList m_childList
private boolean m_registered
private org.apache.excalibur.instrument.CounterInstrument m_instrumentRequests
private org.apache.excalibur.instrument.ValueInstrument m_instrumentTime
| Constructor Detail |
|---|
public AbstractComponentManagerServlet(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.Servletinit in class javax.servlet.GenericServletconfig - ServletConfig object for the servlet.
javax.servlet.ServletException - If there are any initialization problems.public void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServlet
public void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
service in class javax.servlet.http.HttpServletrequest - 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.IOExceptionpublic final java.lang.String getInstrumentableName()
getInstrumentableName in interface org.apache.excalibur.instrument.Instrumentablepublic 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 org.apache.excalibur.instrument.Instrumentablename - The name used to identify a Instrumentable.public final org.apache.excalibur.instrument.Instrumentable[] getChildInstrumentables()
getChildInstrumentables in interface org.apache.excalibur.instrument.Instrumentablepublic final org.apache.excalibur.instrument.Instrument[] getInstruments()
getInstruments in interface org.apache.excalibur.instrument.Instrumentableprotected void addInstrument(org.apache.excalibur.instrument.Instrument instrument)
instrument - Instrument to publish.protected void addChildInstrumentable(org.apache.excalibur.instrument.Instrumentable child)
Note that Child Instrumentables must be named by the caller using the setInstrumentableName method.
child - Child Instrumentable to publish.protected org.apache.avalon.framework.logger.Logger getLogger()
public org.apache.avalon.framework.component.ComponentManager getComponentManager()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||