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 ServerSession.java
Date Fri, 03 Aug 2001 02:49:06 GMT
costin      01/08/02 19:49:06

  Modified:    src/share/org/apache/tomcat/core ServerSession.java
  Log:
  Same for ServerSession.
  
  I still have to review Response and to finish Request, most of the changes are
  cosmetic or fix obvious errors. Later I'll try to do another pass, but only on
  documentations.
  
  Revision  Changes    Path
  1.10      +13 -0     jakarta-tomcat/src/share/org/apache/tomcat/core/ServerSession.java
  
  Index: ServerSession.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/ServerSession.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- ServerSession.java	2001/06/08 03:02:56	1.9
  +++ ServerSession.java	2001/08/03 02:49:06	1.10
  @@ -258,5 +258,18 @@
       public final Object getNote( int pos ) {
   	return notes[pos];
       }
  +
  +    public Object getNote( String name ) throws TomcatException {
  +	int id=context.getContextManager().
  +	    getNoteId( ContextManager.SESSION_NOTE,  name );
  +	return getNote( id );
  +    }
  +
  +    public void setNote( String name, Object value ) throws TomcatException {
  +	int id=context.getContextManager().
  +	    getNoteId( ContextManager.SESSION_NOTE,name );
  +	setNote( id, value );
  +    }
  +
   }
   
  
  
  

Mime
View raw message