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/util/java/org/apache/tomcat/util/handler TcHandlerCtx.java
Date Mon, 08 Apr 2002 22:29:14 GMT
remm        02/04/08 15:29:14

  Modified:    util/java/org/apache/tomcat/util/handler TcHandlerCtx.java
  Log:
  - Add type attribute to the handler context (as an int).
  
  Revision  Changes    Path
  1.2       +32 -1     jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/handler/TcHandlerCtx.java
  
  Index: TcHandlerCtx.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/handler/TcHandlerCtx.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TcHandlerCtx.java	4 Apr 2002 21:59:13 -0000	1.1
  +++ TcHandlerCtx.java	8 Apr 2002 22:29:14 -0000	1.2
  @@ -72,20 +72,51 @@
    * @author Costin Manolache
    */
   public class TcHandlerCtx {
  +
  +
  +    private int type = 0;
  +
  +    /**
  +     * Get the type of the handler context.
  +     */
  +    public final int getType() {
  +        return type;
  +    }
  +
  +    /**
  +     * Set the type of the handler context.
  +     */
  +    public final void setType( int type ) {
  +        this.type = type;
  +    }
  +
  +
       // XXX Make it configurable ( at startup, since runtime change will require sync )
  -    private Object notes[]=new Object[32];
  +    private Object notes[] = new Object[32];
   
  +    /**
  +     * Get a note associated with this hanlder context.
  +     */
       public final Object getNote( int id ) {
           return notes[id];
       }
   
  +    /**
  +     * Associate a note with this hanlder context.
  +     */
       public final void setNote( int id, Object o ) {
           notes[id]=o;
       }
   
  +
  +    /**
  +     * Recycle the hanlder context.
  +     */
       public void recycle() {
  +        type = 0;
           for( int i=0; i<notes.length; i++ ) {
               notes[i]=null;
           }
       }
  +
   }
  
  
  

--
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