|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Valve
A Valve is a request processing component. A series of
Valves are generally associated with each other into a Pipeline.
The detailed contract for a Valve is included in the description of
the invoke() method below.
#invoke(RunData, ValveContext)| Method Summary | |
|---|---|
void |
initialize()
Initialize the valve before using in a pipeline. |
void |
invoke(PipelineData data,
ValveContext context)
Perform request processing as required by this Valve. |
| Method Detail |
|---|
void invoke(PipelineData data,
ValveContext context)
throws java.io.IOException,
TurbineException
Perform request processing as required by this Valve.
An individual Valve MAY perform the following actions, in the specified order:
context.invokeNext().
context.invokeNext()).
A Valve MUST NOT do any of the following things:
invokeNext() method has returned.
invokeNext() method has
returned.
data - The run-time information, including the servlet
request and response we are processing.context - The valve context used to invoke the next valve
in the current processing pipeline
java.io.IOException - Thrown by a subsequent Valve.
TurbineException - Thrown by a subsequent Valve.
void initialize()
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||