tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/core Request.java
Date Fri, 03 Aug 2001 02:47:58 GMT
costin      01/08/02 19:47:58

  Modified:    src/share/org/apache/tomcat/core Request.java
  Log:
  Same - added the simpler ( and slower ) get/setNote.
  
  Revision  Changes    Path
  1.105     +13 -0     jakarta-tomcat/src/share/org/apache/tomcat/core/Request.java
  
  Index: Request.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/Request.java,v
  retrieving revision 1.104
  retrieving revision 1.105
  diff -u -r1.104 -r1.105
  --- Request.java	2001/07/14 04:26:42	1.104
  +++ Request.java	2001/08/03 02:47:58	1.105
  @@ -949,6 +949,19 @@
   	return notes[pos];
       }
   
  +    public Object getNote( String name ) throws TomcatException {
  +	int id=contextM.getNoteId( ContextManager.REQUEST_NOTE,
  +				   name );
  +	return getNote( id );
  +    }
  +
  +    public void setNote( String name, Object value ) throws TomcatException {
  +	int id=contextM.getNoteId( ContextManager.REQUEST_NOTE,
  +				   name );
  +	setNote( id, value );
  +    }
  +
  +
       // -------------------- Recycling -------------------- 
       public void recycle() {
   	initRequest();
  
  
  

Mime
View raw message