costin 02/01/06 00:47:09 Modified: jk/java/org/apache/jk/core Endpoint.java Msg.java WorkerEnv.java Log: Added support for BaseRequest's notes. Increase the number of notes for endpoint. Add ByteChunks to message and remove references to Strings. Revision Changes Path 1.2 +1 -1 jakarta-tomcat-connectors/jk/java/org/apache/jk/core/Endpoint.java Index: Endpoint.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/core/Endpoint.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- Endpoint.java 31 Dec 2001 19:03:53 -0000 1.1 +++ Endpoint.java 6 Jan 2002 08:47:09 -0000 1.2 @@ -82,7 +82,7 @@ * @author Costin Manolache */ public class Endpoint { - private Object notes[]=new Object[8]; + private Object notes[]=new Object[16]; public final Object getNote( int id ) { return notes[id]; 1.2 +3 -7 jakarta-tomcat-connectors/jk/java/org/apache/jk/core/Msg.java Index: Msg.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/core/Msg.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- Msg.java 31 Dec 2001 19:03:53 -0000 1.1 +++ Msg.java 6 Jan 2002 08:47:09 -0000 1.2 @@ -67,7 +67,7 @@ import java.security.*; import org.apache.tomcat.util.http.MimeHeaders; -import org.apache.tomcat.util.buf.MessageBytes; +import org.apache.tomcat.util.buf.*; import org.apache.tomcat.util.http.HttpMessages; import org.apache.tomcat.util.buf.HexUtils; @@ -105,15 +105,11 @@ public abstract void appendLongInt( int val ); /** - * Write a String out at the current write position. Strings are - * encoded with the length in two bytes first, then the string, and - * then a terminating \0 (which is <B>not</B> included in the - * encoded length). The terminator is for the convenience of the C - * code, where it saves a round of copying. A null string is - * encoded as a string with length 0. */ public abstract void appendBytes(MessageBytes mb) throws IOException; + public abstract void appendByteChunk(ByteChunk bc) throws IOException; + /** * Copy a chunk of bytes into the packet, starting at the current * write position. The chunk of bytes is encoded with the length 1.2 +1 -0 jakarta-tomcat-connectors/jk/java/org/apache/jk/core/WorkerEnv.java Index: WorkerEnv.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/core/WorkerEnv.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- WorkerEnv.java 31 Dec 2001 19:03:53 -0000 1.1 +++ WorkerEnv.java 6 Jan 2002 08:47:09 -0000 1.2 @@ -83,6 +83,7 @@ int webappCnt=0; public static final int ENDPOINT_NOTE=0; + public static final int REQUEST_NOTE=1; int noteId[]=new int[4]; String noteName[][]=new String[4][];
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>