StandardValveContextpublic final class StandardValveContext extends Object implements org.apache.catalina.ValveContextStandard implementation of a ValveContext . |
Fields Summary |
---|
protected static final org.apache.catalina.util.StringManager | smThe string manager for this package. | protected String | info | protected int | stage | protected org.apache.catalina.Valve | basic | protected org.apache.catalina.Valve[] | valves |
Methods Summary |
---|
public java.lang.String | getInfo()Return descriptive information about this ValveContext
implementation.
// ------------------------------------------------------------- Properties
return info;
| public final void | invokeNext(org.apache.catalina.Request request, org.apache.catalina.Response response)Cause the invoke() method of the next Valve that is
part of the Pipeline currently being processed (if any) to be
executed, passing on the specified request and response objects
plus this ValveContext instance. Exceptions thrown by
a subsequently executed Valve (or a Filter or Servlet at the
application level) will be passed on to our caller.
If there are no more Valves to be executed, an appropriate
ServletException will be thrown by this ValveContext.
/** STARTS OF PE 4665318
int subscript = stage;
stage = stage + 1;
// Invoke the requested Valve for the current request thread
if (subscript < valves.length) {
valves[subscript].invoke(request, response, this);
} else if ((subscript == valves.length) && (basic != null)) {
basic.invoke(request, response, this);
} else {
throw new ServletException
(sm.getString("standardPipeline.noValve"));
}
*/
// END OF PE 4665318
| void | set(org.apache.catalina.Valve basic, org.apache.catalina.Valve[] valves)Reset state.
stage = 0;
this.basic = basic;
this.valves = valves;
|
|