FileDocCategorySizeDatePackage
StandardValveContext.javaAPI DocGlassfish v2 API5348Fri May 04 22:31:54 BST 2007org.apache.catalina.core

StandardValveContext

public final class StandardValveContext extends Object implements org.apache.catalina.ValveContext
Standard implementation of a ValveContext.
author
Craig R. McClanahan
author
Remy Maucherat ???* This class is no longer used in PE 8.0. See bug 4665318
author
Jean-Francois Arcand

Fields Summary
protected static final org.apache.catalina.util.StringManager
sm
The string manager for this package.
protected String
info
protected int
stage
protected org.apache.catalina.Valve
basic
protected org.apache.catalina.Valve[]
valves
Constructors Summary
Methods Summary
public java.lang.StringgetInfo()
Return descriptive information about this ValveContext implementation.



    // ------------------------------------------------------------- Properties


                 
       
        return info;
    
public final voidinvokeNext(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.

param
request The request currently being processed
param
response The response currently being created
exception
IOException if thrown by a subsequent Valve, Filter, or Servlet
exception
ServletException if thrown by a subsequent Valve, Filter, or Servlet
exception
ServletException if there are no further Valves configured in the Pipeline currently being processed


        /** 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
    
voidset(org.apache.catalina.Valve basic, org.apache.catalina.Valve[] valves)
Reset state.

        stage = 0;
        this.basic = basic;
        this.valves = valves;