You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by co...@apache.org on 2001/08/03 04:49:06 UTC
cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/core ServerSession.java
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 );
+ }
+
}