costin      01/08/02 19:40:20

  Modified:    src/share/org/apache/tomcat/core BaseInterceptor.java
  Log:
  Final ( I hope ) review of the core.
  
  Added missing notes in BaseInterceptor.
  
  Revision  Changes    Path
  1.50      +23 -0     
jakarta-tomcat/src/share/org/apache/tomcat/core/BaseInterceptor.java
  
  Index: BaseInterceptor.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/BaseInterceptor.java,v
  retrieving revision 1.49
  retrieving revision 1.50
  diff -u -r1.49 -r1.50
  --- BaseInterceptor.java      2001/07/14 04:33:32     1.49
  +++ BaseInterceptor.java      2001/08/03 02:40:20     1.50
  @@ -625,4 +625,27 @@
       public int registerHooks(Hooks h, ContextManager cm, Context ctx) {
        return DECLINED;
       }
  +
  +    // -------------------- Notes --------------------
  +
  +    private Object notes[]=new Object[ContextManager.MAX_NOTES];
  +    
  +    public final void setNote( int pos, Object value ) {
  +     notes[pos]=value;
  +    }
  +
  +    public final Object getNote( int pos ) {
  +     return notes[pos];
  +    }
  +
  +    public Object getNote( String name ) throws TomcatException {
  +     int id=cm.getNoteId( ContextManager.MODULE_NOTE, name );
  +     return getNote( id );
  +    }
  +
  +    public void setNote( String name, Object value ) throws TomcatException {
  +     int id=cm.getNoteId( ContextManager.MODULE_NOTE, name );
  +     setNote( id, value );
  +    }
  +
   }
  
  
  

Reply via email to