You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by ba...@locus.apache.org on 2000/06/04 22:03:37 UTC

cvs commit: xml-cocoon/src/org/apache/cocoon Utils.java

balld       00/06/04 13:03:37

  Modified:    .        changes.xml
               src/org/apache/cocoon Utils.java
  Log:
  Added HTTP method to Utils.encode
  
  Revision  Changes    Path
  1.80      +5 -2      xml-cocoon/changes.xml
  
  Index: changes.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/changes.xml,v
  retrieving revision 1.79
  retrieving revision 1.80
  diff -u -r1.79 -r1.80
  --- changes.xml	2000/06/04 05:55:28	1.79
  +++ changes.xml	2000/06/04 20:03:32	1.80
  @@ -4,7 +4,7 @@
   
   <!--
     History of Cocoon changes
  -  $Id: changes.xml,v 1.79 2000/06/04 05:55:28 balld Exp $
  +  $Id: changes.xml,v 1.80 2000/06/04 20:03:32 balld Exp $
   -->
   
   <changes title="History of Changes">
  @@ -16,7 +16,10 @@
     </devs>
   
    <release version="@version@" date="@date@">
  -  <action dev="db" type="fix" due-to="Daniel Schneider" due-to-email="Daniel.Schneider@tecfa.unige.ch">
  +  <action dev="DB" type="fix" due-to="Jeremy Quinn" due-to-email="jeremy@media.demon.co.uk">
  +   Added HTTP method to Utils.encode so HEAD and GET are distinguishable
  +  </action>
  +  <action dev="DB" type="fix" due-to="Daniel Schneider" due-to-email="Daniel.Schneider@tecfa.unige.ch">
      XIncludeProcessor now strips document type nodes from included documents
     </action
     <action dev="SM" type="add" due-to="Mark Evans" due-to-email="mark.evans@dsto.defence.gov.au">
  
  
  
  1.16      +6 -4      xml-cocoon/src/org/apache/cocoon/Utils.java
  
  Index: Utils.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/Utils.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- Utils.java	2000/05/12 12:39:46	1.15
  +++ Utils.java	2000/06/04 20:03:35	1.16
  @@ -1,4 +1,4 @@
  -/*-- $Id: Utils.java,v 1.15 2000/05/12 12:39:46 stefano Exp $ --
  +/*-- $Id: Utils.java,v 1.16 2000/06/04 20:03:35 balld Exp $ --
   
    ============================================================================
                      The Apache Software License, Version 1.1
  @@ -61,7 +61,7 @@
    * Utility methods for Cocoon and its classes.
    *
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
  - * @version $Revision: 1.15 $ $Date: 2000/05/12 12:39:46 $
  + * @version $Revision: 1.16 $ $Date: 2000/06/04 20:03:35 $
    */
   
   public final class Utils {
  @@ -188,7 +188,7 @@
   
       /**
        * Encodes the given request into a string using the format
  -     *   userAgent:protocol://serverName:serverPort/requestURI?query
  +     *   userAgent:method:protocol://serverName:serverPort/requestURI?query
        * with the agent flag controlling the presence of the userAgent
        * field.
        */
  @@ -198,7 +198,7 @@
   
       /**
        * Encodes the given request into a string using the format
  -     *   userAgent:protocol://serverName:serverPort/requestURI?query
  +     *   userAgent:method:protocol://serverName:serverPort/requestURI?query
        * with the agent flag controlling the presence of the userAgent
        * field and the query flag controlling the query field.
        */
  @@ -208,6 +208,8 @@
               url.append(req.getHeader("user-Agent"));
               url.append(':');
           }
  +		url.append(req.getMethod());
  +		url.append(':');
           url.append(req.getScheme());
           url.append("://");
           url.append(req.getServerName());