org.apache.catalina.valves
public abstract class ValveBase extends Object implements Contained, Valve, MBeanRegistration
invoke()
method to provide the required functionality, and MAY
implement the Lifecycle
interface to provide configuration
management and lifecycle support.
Version: $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $
Field Summary | |
---|---|
protected Container | container
The Container whose pipeline this Valve is a component of. |
protected Log | containerLog
Container log |
protected ObjectName | controller |
protected String | domain |
protected static String | info
Descriptive information about this Valve implementation. |
protected MBeanServer | mserver |
protected Valve | next
The next Valve in the pipeline this Valve is a component of. |
protected ObjectName | oname |
protected static StringManager | sm
The string manager for this package. |
Method Summary | |
---|---|
void | backgroundProcess()
Execute a periodic task, such as reloading, etc. |
ObjectName | createObjectName(String domain, ObjectName parent) |
void | event(Request request, Response response, CometEvent event)
Process a Comet event. |
Container | getContainer()
Return the Container with which this Valve is associated, if any. |
ObjectName | getContainerName() |
ObjectName | getController() |
String | getDomain() |
String | getInfo()
Return descriptive information about this Valve implementation. |
Valve | getNext()
Return the next Valve in this pipeline, or null if this
is the last Valve in the pipeline. |
ObjectName | getObjectName() |
ObjectName | getParentName(ObjectName valveName) From the name, extract the parent object name
|
abstract void | invoke(Request request, Response response)
The implementation-specific logic represented by this Valve. |
void | postDeregister() |
void | postRegister(Boolean registrationDone) |
void | preDeregister() |
ObjectName | preRegister(MBeanServer server, ObjectName name) |
void | setContainer(Container container)
Set the Container with which this Valve is associated, if any.
|
void | setController(ObjectName controller) |
void | setNext(Valve valve)
Set the Valve that follows this one in the pipeline it is part of.
|
void | setObjectName(ObjectName oname) |
String | toString()
Return a String rendering of this object. |
Parameters: request The servlet request to be processed response The servlet response to be created
Throws: IOException if an input/output error occurs, or is thrown by a subsequently invoked Valve, Filter, or Servlet ServletException if a servlet error occurs, or is thrown by a subsequently invoked Valve, Filter, or Servlet
null
if this
is the last Valve in the pipeline.Parameters: valveName The valve name
Returns: ObjectName The parent name
This method MUST be provided by a subclass.
Parameters: request The servlet request to be processed response The servlet response to be created
Throws: IOException if an input/output error occurs ServletException if a servlet error occurs
Parameters: container The new associated container
Parameters: valve The new next valve