public interface GlassFishValve
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 | Field and Description |
|---|---|
static int |
END_PIPELINE
A valve returns this value to indicate that no further processing
of the request should take place (along the rest of the pipeline).
|
static int |
INVOKE_NEXT
A valve returns this value to indicate (to the pipeline) that the next
valve in the pipeline can be invoked.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getInfo()
Return descriptive information about this Valve implementation.
|
int |
invoke(Request request,
Response response)
Perform request processing as required by this Valve.
|
void |
postInvoke(Request request,
Response response)
Perform post-request processing as required by this Valve.
|
static final int INVOKE_NEXT
static final int END_PIPELINE
String getInfo()
int invoke(Request request, Response response) throws IOException, javax.servlet.ServletException
Perform request processing as required by this Valve.
An individual Valve MAY perform the following actions, in the specified order:
context.invokeNext().
A Valve MUST NOT do any of the following things:
invokeNext() method has returned.
invokeNext() method has
returned.
request - The servlet request to be processedresponse - The servlet response to be createdINVOKE_NEXT or END_PIPELINEIOException - if an input/output error occurs, or is thrown
by a subsequently invoked Valve, Filter, or Servletjavax.servlet.ServletException - if a servlet error occurs, or is thrown
by a subsequently invoked Valve, Filter, or Servletvoid postInvoke(Request request, Response response) throws IOException, javax.servlet.ServletException
Perform post-request processing as required by this Valve.
request - The servlet request to be processedresponse - The servlet response to be createdIOException - if an input/output error occursjavax.servlet.ServletException - if a servlet error occursCopyright © 2017. All rights reserved.