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/12 03:49:56 UTC
cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/core Request.java ServerSession.java
costin 01/08/11 18:49:56
Modified: src/share/org/apache/tomcat/core Request.java
ServerSession.java
Log:
In Request, set the encoding as the default.
Added few debug statements in ServerSession.
Revision Changes Path
1.108 +2 -2 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.107
retrieving revision 1.108
diff -u -r1.107 -r1.108
--- Request.java 2001/08/08 17:19:16 1.107
+++ Request.java 2001/08/12 01:49:56 1.108
@@ -483,8 +483,8 @@
}
}
- // if( charEncoding == null )
- // charEncoding=DEFAULT_CHARACTER_ENCODING;
+ if( charEncoding == null )
+ charEncoding=DEFAULT_CHARACTER_ENCODING;
return charEncoding;
}
1.11 +5 -1 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.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- ServerSession.java 2001/08/03 02:49:06 1.10
+++ ServerSession.java 2001/08/12 01:49:56 1.11
@@ -98,7 +98,7 @@
public static final int STATE_RESTORED=5;
-
+ private int debug=0;
private MessageBytes id = new MessageBytes();
// XXX This must be replaced with a more efficient storage
private Hashtable attributes = new Hashtable();
@@ -207,6 +207,7 @@
}
public void removeAllAttributes() {
+ if( debug > 0 ) System.out.println("ServerSession:removeAllAttributes");
Enumeration attrs = getAttributeNames();
while (attrs.hasMoreElements()) {
String attr = (String) attrs.nextElement();
@@ -215,11 +216,13 @@
}
public void removeAttribute(String name) {
+ if( debug > 0 ) System.out.println("ServerSession:removeAllAttribute "+ name);
// Hashtable is already synchronized
attributes.remove(name);
}
public void setAttribute(String name, Object value) {
+ if( debug > 0 ) System.out.println("ServerSession:setAttribute "+ name);
attributes.put(name, value);
}
@@ -243,6 +246,7 @@
*/
public void recycle() {
// Reset the instance variables associated with this Session
+ if( debug > 0 ) System.out.println("ServerSession:recycle ");
attributes.clear();
ts.recycle();
id.recycle();