costin 02/02/06 09:33:50 Modified: jk/java/org/apache/jk/core Msg.java Log: 2 more methods - peekByte used to dispatch and "Tag", the message type. Msg must be abstracted, it's still too Ajp13 specific. Jk should work with any kind of messages - including soap or IIOP. Revision Changes Path 1.4 +21 -0 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.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- Msg.java 26 Jan 2002 07:22:23 -0000 1.3 +++ Msg.java 6 Feb 2002 17:33:50 -0000 1.4 @@ -76,6 +76,9 @@ * A single packet for communication between the web server and the * container. * + * In a more generic sense, it's the event that drives the processing chain. + * XXX Use Event, make Msg a particular case. + * * @author Henri Gomez [[EMAIL PROTECTED]] * @author Dan Milstein [[EMAIL PROTECTED]] * @author Keith Wannamaker [[EMAIL PROTECTED]] @@ -84,6 +87,8 @@ */ public abstract class Msg { + + /** * Prepare this packet for accumulating a message from the container to * the web server. Set the write position to just after the header @@ -135,6 +140,8 @@ public abstract byte getByte(); + public abstract byte peekByte(); + public abstract void getBytes(MessageBytes mb); /** @@ -163,5 +170,19 @@ public abstract int getLen(); public abstract void dump(String msg); + + + + int tag; + /** Message type - the tag is used to fast dispatch + * by message type + */ + public void setTag( int i ) { + tag=i; + } + + public int getTag() { + return tag; + } }
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>