cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gree...@locus.apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon Utils.java
Date Tue, 21 Nov 2000 23:38:26 GMT
greenrd     00/11/21 15:38:25

  Modified:    .        changes.xml
               xdocs    caching.xml
               src/org/apache/cocoon Utils.java
  Log:
  made caching dependent on request headers
  
  Revision  Changes    Path
  1.154     +5 -1      xml-cocoon/changes.xml
  
  Index: changes.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/changes.xml,v
  retrieving revision 1.153
  retrieving revision 1.154
  diff -u -r1.153 -r1.154
  --- changes.xml	2000/11/20 22:37:23	1.153
  +++ changes.xml	2000/11/21 23:38:22	1.154
  @@ -4,7 +4,7 @@
   
   <!--
     History of Cocoon changes   
  -  $Id: changes.xml,v 1.153 2000/11/20 22:37:23 greenrd Exp $ 
  +  $Id: changes.xml,v 1.154 2000/11/21 23:38:22 greenrd Exp $ 
   -->
   
   <changes title="History of Changes">
  @@ -18,6 +18,10 @@
     </devs>
   
    <release version="@version@" date="@date@">
  +  <action dev="RDG" type="update" due-to="Ovidiu Predescu" 
  +   due-to-email="ovidiu@cup.hp.com">
  +   Made caching dependent on all request headers, not just user agent.
  +  </action>
     <action dev="RDG" type="fix">
      Fixed XSLTProcessor and XalanTransformer to allow embedded stylesheets.
     </action>
  
  
  
  1.3       +3 -0      xml-cocoon/xdocs/caching.xml
  
  Index: caching.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/xdocs/caching.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- caching.xml	2000/11/20 18:04:42	1.2
  +++ caching.xml	2000/11/21 23:38:23	1.3
  @@ -164,7 +164,10 @@
       <li>Server name</li>
       <li>Port</li>
       <li>Rest of URI, including query string</li>
  +    <li>All request headers</li>
      </ul>
  +
  +   <p>It is on the todo list to make this more configurable.</p>
     </s2>
   
     <s2 title="Example of caching dynamic content - Why Bother?">
  
  
  
  1.20      +9 -0      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.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- Utils.java	2000/11/16 23:44:37	1.19
  +++ Utils.java	2000/11/21 23:38:24	1.20
  @@ -1,4 +1,4 @@
  -/*-- $Id: Utils.java,v 1.19 2000/11/16 23:44:37 greenrd Exp $ --
  +/*-- $Id: Utils.java,v 1.20 2000/11/21 23:38:24 greenrd Exp $ --
   
    ============================================================================
                      The Apache Software License, Version 1.1
  @@ -66,7 +66,7 @@
    *
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
    * @author <a href="mailto:greenrd@hotmail.com">Robin Green</a>
  - * @version $Revision: 1.19 $ $Date: 2000/11/16 23:44:37 $
  + * @version $Revision: 1.20 $ $Date: 2000/11/21 23:38:24 $
    */
   
   public final class Utils {
  @@ -224,6 +224,15 @@
           if (query) {
               url.append('?');
               url.append(req.getQueryString());
  +        }
  +
  +        url.append("&headers:");
  +        Enumeration headers = req.getHeaderNames();
  +        while (headers.hasMoreElements()) {
  +            String name = (String)headers.nextElement();
  +            url.append(name);
  +            url.append("=");
  +            url.append((String)req.getHeader(name));
           }
           return url.toString();
       }
  
  
  

Mime
View raw message