public abstract class AbstractValve extends Object implements Valve
Constructor and Description |
---|
AbstractValve() |
Modifier and Type | Method and Description |
---|---|
RunData |
getRunData(PipelineData pipelineData)
utility for getting RunData out of the pipelineData object.
|
void |
initialize()
Initialize this valve for use in a pipeline.
|
abstract void |
invoke(PipelineData data,
ValveContext context)
Perform request processing as required by this Valve.
|
public AbstractValve()
public void initialize() throws Exception
initialize
in interface Valve
Exception
public abstract void invoke(PipelineData data, ValveContext context) throws IOException, TurbineException
Valve
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.
invoke
in interface Valve
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 pipelineIOException
- Thrown by a subsequent Valve.TurbineException
- Thrown by a subsequent Valve.Valve.invoke(PipelineData, ValveContext)
public final RunData getRunData(PipelineData pipelineData)
pipelineData
- Copyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.