cvs commit: jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote InputBuffer.java OutputBuffer.java
costin 02/04/09 11:15:21 Modified:coyote/src/java/org/apache/coyote InputBuffer.java OutputBuffer.java Log: Added a second parameter allowing IB and OB to be implemented stateless ( or statefull, depending on the rest of the code ) I'll add the extra param to the classes implementing it in the next commits. ( with Remy's blessing :-) Revision ChangesPath 1.6 +1 -1 jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/InputBuffer.java Index: InputBuffer.java === RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/InputBuffer.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- InputBuffer.java 9 Apr 2002 17:57:13 - 1.5 +++ InputBuffer.java 9 Apr 2002 18:15:21 - 1.6 @@ -77,7 +77,7 @@ buffer and return a pointer to it in ByteChunk ( i.e. the param will have chunk.getBytes()==null before call, and the result after the call ). */ -public int doRead(ByteChunk chunk) +public int doRead(ByteChunk chunk, Request request) throws IOException; 1.6 +1 -1 jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/OutputBuffer.java Index: OutputBuffer.java === RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/OutputBuffer.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- OutputBuffer.java 8 Apr 2002 23:46:32 - 1.5 +++ OutputBuffer.java 9 Apr 2002 18:15:21 - 1.6 @@ -72,7 +72,7 @@ public interface OutputBuffer { -public int doWrite(ByteChunk chunk) +public int doWrite(ByteChunk chunk, Response response) throws IOException; -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote InputBuffer.java OutputBuffer.java
costin 02/04/08 16:46:32 Modified:coyote/src/java/org/apache/coyote InputBuffer.java OutputBuffer.java Log: Revert the comment Revision ChangesPath 1.4 +0 -3 jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/InputBuffer.java Index: InputBuffer.java === RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/InputBuffer.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- InputBuffer.java 8 Apr 2002 22:49:52 - 1.3 +++ InputBuffer.java 8 Apr 2002 23:46:32 - 1.4 @@ -63,9 +63,6 @@ import org.apache.tomcat.util.buf.ByteChunk; -// XXX For consistency, this should be replaced with an action/hook - like all other -// callbacks from coyote to the protocol layer - /** * Input buffer. 1.5 +0 -2 jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/OutputBuffer.java Index: OutputBuffer.java === RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/OutputBuffer.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- OutputBuffer.java 8 Apr 2002 22:49:52 - 1.4 +++ OutputBuffer.java 8 Apr 2002 23:46:32 - 1.5 @@ -63,8 +63,6 @@ import org.apache.tomcat.util.buf.ByteChunk; -// XXX For consistency, this should be replaced with an action/hook - like all other -// callbacks from coyote to the protocol layer /** * Output buffer. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote InputBuffer.java OutputBuffer.java
remm01/09/16 22:28:52 Modified:coyote/src/java/org/apache/coyote InputBuffer.java OutputBuffer.java Log: - Use some byte chunks instead of passing arrays. That allows all sorts of tricks since it's fully possible to replace the internal array, append data, ... Revision ChangesPath 1.2 +3 -1 jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/InputBuffer.java Index: InputBuffer.java === RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/InputBuffer.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- InputBuffer.java 2001/06/14 01:07:56 1.1 +++ InputBuffer.java 2001/09/17 05:28:52 1.2 @@ -61,6 +61,8 @@ import java.io.IOException; +import org.apache.tomcat.util.buf.ByteChunk; + /** * Input buffer. * @@ -69,7 +71,7 @@ public interface InputBuffer { -public int doRead(byte b[], int off, int len) +public int doRead(ByteChunk chunk) throws IOException; 1.3 +3 -1 jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/OutputBuffer.java Index: OutputBuffer.java === RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/OutputBuffer.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- OutputBuffer.java 2001/07/10 02:55:01 1.2 +++ OutputBuffer.java 2001/09/17 05:28:52 1.3 @@ -61,6 +61,8 @@ import java.io.IOException; +import org.apache.tomcat.util.buf.ByteChunk; + /** * Output buffer. * @@ -69,7 +71,7 @@ public interface OutputBuffer { -public int doWrite(byte b[], int off, int len) +public int doWrite(ByteChunk chunk) throws IOException;