You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ke...@apache.org on 2001/08/23 05:08:39 UTC

cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/modules/server Ajp13.java

keith       01/08/22 20:08:39

  Modified:    src/native/mod_jk/common jk_ajp13.c
               src/share/org/apache/tomcat/modules/server Ajp13.java
  Log:
  Add the REPORT method to ajp13, which is required by any servlet
  that implements the ACL method.
  
  Revision  Changes    Path
  1.6       +5 -1      jakarta-tomcat/src/native/mod_jk/common/jk_ajp13.c
  
  Index: jk_ajp13.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/native/mod_jk/common/jk_ajp13.c,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- jk_ajp13.c	2001/02/07 23:47:12	1.5
  +++ jk_ajp13.c	2001/08/23 03:08:39	1.6
  @@ -56,7 +56,7 @@
   /***************************************************************************
    * Description: Experimental bi-directionl protocol handler.               *
    * Author:      Gal Shachor <sh...@il.ibm.com>                           *
  - * Version:     $Revision: 1.5 $                                           *
  + * Version:     $Revision: 1.6 $                                           *
    ***************************************************************************/
   
   
  @@ -99,6 +99,7 @@
    *                        | "LOCK"
    *                        | "UNLOCK"
    *                        | "ACL"
  + *                        | "REPORT"
    * 
    */
   #define SC_M_OPTIONS            (unsigned char)1
  @@ -116,6 +117,7 @@
   #define SC_M_LOCK               (unsigned char)13
   #define SC_M_UNLOCK             (unsigned char)14
   #define SC_M_ACL		(unsigned char)15
  +#define SC_M_REPORT             (unsigned char)16
   
   
   /*
  @@ -243,6 +245,8 @@
   	*sc = SC_M_UNLOCK;
       } else if(0 == strcmp(method, "ACL")) {
   	*sc = SC_M_ACL;
  +    } else if(0 == strcmp(method, "REPORT")) {
  +	*sc = SC_M_REPORT;
       } else {
           rc = JK_FALSE;
       }
  
  
  
  1.22      +2 -1      jakarta-tomcat/src/share/org/apache/tomcat/modules/server/Ajp13.java
  
  Index: Ajp13.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/server/Ajp13.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- Ajp13.java	2001/07/20 22:08:16	1.21
  +++ Ajp13.java	2001/08/23 03:08:39	1.22
  @@ -159,7 +159,8 @@
           "MOVE",
           "LOCK",
           "UNLOCK",
  -        "ACL"
  +        "ACL",
  +        "REPORT"
       };
       
       // Translates integer codes to request header names