tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5 CoyoteRequest.java
Date Mon, 25 Nov 2002 21:04:42 GMT
remm        2002/11/25 13:04:42

  Modified:    coyote/src/java/org/apache/coyote/tomcat5 CoyoteRequest.java
  Log:
  - Add methods to optimize valves and filters processing (more optimization of
    the filter part coming).
  
  Revision  Changes    Path
  1.9       +50 -4     jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5/CoyoteRequest.java
  
  Index: CoyoteRequest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5/CoyoteRequest.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- CoyoteRequest.java	24 Nov 2002 11:56:15 -0000	1.8
  +++ CoyoteRequest.java	25 Nov 2002 21:04:42 -0000	1.9
  @@ -84,6 +84,7 @@
   import java.util.Map;
   import java.util.TreeMap;
   
  +import javax.servlet.FilterChain;
   import javax.servlet.RequestDispatcher;
   import javax.servlet.ServletContext;
   import javax.servlet.ServletException;
  @@ -111,6 +112,7 @@
   import org.apache.catalina.Manager;
   import org.apache.catalina.Realm;
   import org.apache.catalina.Session;
  +import org.apache.catalina.ValveContext;
   import org.apache.catalina.Wrapper;
   
   import org.apache.catalina.util.Enumerator;
  @@ -482,6 +484,28 @@
   
   
       /**
  +     * Filter chain associated with the request.
  +     */
  +    protected FilterChain filterChain = null;
  +
  +    /**
  +     * Get filter chain associated with the request.
  +     */
  +    public FilterChain getFilterChain() {
  +        return (this.filterChain);
  +    }
  +
  +    /**
  +     * Set filter chain associated with the request.
  +     * 
  +     * @param filterChain new filter chain
  +     */
  +    public void setFilterChain(FilterChain filterChain) {
  +        this.filterChain = filterChain;
  +    }
  +
  +
  +    /**
        * Descriptive information about this Request implementation.
        */
       protected static final String info =
  @@ -572,6 +596,28 @@
        */
       public void setStream(InputStream stream) {
           // Ignore
  +    }
  +
  +
  +    /**
  +     * The valve context associated with this request.
  +     */
  +    protected ValveContext valveContext = null;
  +
  +    /**
  +     * Get valve context.
  +     */
  +    public ValveContext getValveContext() {
  +        return (this.valveContext);
  +    }
  +
  +    /**
  +     * Set valve context.
  +     * 
  +     * @param valveContext New valve context object
  +     */
  +    public void setValveContext(ValveContext valveContext) {
  +        this.valveContext = valveContext;
       }
   
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message