|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.catalina.valves.ValveBase
Convenience base class for implementations of the Valve interface.
A subclass MUST implement an invoke()
method to provide the required functionality, and MAY
implement the Lifecycle interface to provide configuration
management and lifecycle support.
| Field Summary | |
protected Container |
container
The Container whose pipeline this Valve is a component of. |
protected int |
debug
The debugging detail level for this component. |
protected static java.lang.String |
info
Descriptive information about this Valve implementation. |
protected static StringManager |
sm
The string manager for this package. |
| Constructor Summary | |
ValveBase()
|
|
| Method Summary | |
Container |
getContainer()
Return the Container with which this Valve is associated, if any. |
int |
getDebug()
Return the debugging detail level for this component. |
java.lang.String |
getInfo()
Return descriptive information about this Valve implementation. |
abstract void |
invoke(Request request,
Response response,
ValveContext context)
The implementation-specific logic represented by this Valve. |
void |
setContainer(Container container)
Set the Container with which this Valve is associated, if any. |
void |
setDebug(int debug)
Set the debugging detail level for this component. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Container container
protected int debug
protected static java.lang.String info
protected static final StringManager sm
| Constructor Detail |
public ValveBase()
| Method Detail |
public Container getContainer()
getContainer in interface Containedpublic void setContainer(Container container)
setContainer in interface Containedcontainer - The new associated containerpublic int getDebug()
public void setDebug(int debug)
debug - The new debugging detail levelpublic java.lang.String getInfo()
getInfo in interface Valve
public abstract void invoke(Request request,
Response response,
ValveContext context)
throws java.io.IOException,
javax.servlet.ServletException
This method MUST be provided by a subclass.
invoke in interface Valverequest - The servlet request to be processedresponse - The servlet response to be createdcontext - The valve context used to invoke the next valve
in the current processing pipeline
java.io.IOException - if an input/output error occurs
javax.servlet.ServletException - if a servlet error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||