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 2002/02/06 18:33:50 UTC

cvs commit: jakarta-tomcat-connectors/jk/java/org/apache/jk/core Msg.java

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 [hgomez@slib.fr]
    * @author Dan Milstein [danmil@shore.net]
    * @author Keith Wannamaker [Keith@Wannamaker.org]
  @@ -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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>