|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.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 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. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Container container
protected static java.lang.String info
protected static final StringManager sm
Constructor Detail |
public ValveBase()
Method Detail |
public Container getContainer()
getContainer
in interface Contained
public void setContainer(Container container)
setContainer
in interface Contained
container
- The new associated containerpublic 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 Valve
request
- 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 |