A Valve is a request processing component associated with a
particular Container. 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.
| Modifier and Type | Method and Description |
|---|---|
| public void | backgroundProcess()
Execute a periodic task, such as reloading, etc. This method will be invoked inside the classloading context of this container. |
| public Valve | Returns: the next Valve in the pipeline containing this Valve, ornull if this is the last Valve in the pipeline.Returns the next Valve in this pipeline, or |
| public void | |
| public boolean | |
| public void |
| backgroundProcess | back to summary |
|---|---|
| public void backgroundProcess() Execute a periodic task, such as reloading, etc. This method will be invoked inside the classloading context of this container. Unexpected throwables will be caught and logged. | |
| getNext | back to summary |
|---|---|
| public Valve getNext() Returns the next Valve in this pipeline, or
| |
| invoke | back to summary |
|---|---|
| public void invoke(Request request, Response response) throws IOException, ServletException Perform request processing as required by this Valve. An individual Valve MAY perform the following actions, in the specified order:
A Valve MUST NOT do any of the following things:
| |
| isAsyncSupported | back to summary |
|---|---|
| public boolean isAsyncSupported() | |
| setNext | back to summary |
|---|---|
| public void setNext(Valve valve) Set the next Valve in the pipeline containing this Valve.
| |