cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/transformation EncodeURLTransformer.java
Date Mon, 27 Jan 2003 07:43:33 GMT
cziegeler    2003/01/26 23:43:33

  Modified:    src/java/org/apache/cocoon/transformation
                        EncodeURLTransformer.java
  Log:
  - Fixing caching logic for encode url transformer
  - turning off caching, because you get wrong cached content, *if* the session is created
during processing
  
  Revision  Changes    Path
  1.7       +8 -8      xml-cocoon2/src/java/org/apache/cocoon/transformation/EncodeURLTransformer.java
  
  Index: EncodeURLTransformer.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/transformation/EncodeURLTransformer.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- EncodeURLTransformer.java	26 Jan 2003 07:27:32 -0000	1.6
  +++ EncodeURLTransformer.java	27 Jan 2003 07:43:33 -0000	1.7
  @@ -57,7 +57,7 @@
   import org.apache.avalon.framework.configuration.ConfigurationException;
   import org.apache.avalon.framework.parameters.Parameters;
   import org.apache.cocoon.ProcessingException;
  -import org.apache.cocoon.caching.CacheableProcessingComponent;
  +//import org.apache.cocoon.caching.CacheableProcessingComponent;
   import org.apache.cocoon.environment.ObjectModelHelper;
   import org.apache.cocoon.environment.Request;
   import org.apache.cocoon.environment.Response;
  @@ -124,7 +124,7 @@
    */
   public class EncodeURLTransformer
     extends AbstractTransformer
  -  implements Configurable, CacheableProcessingComponent {
  +  implements Configurable {
   
       /**
        * Configuration name for specifying excluding patterns,
  @@ -270,9 +270,9 @@
        */
       public java.io.Serializable generateKey() {
           if (isEncodeURLNeeded()) {
  -            return "1";
  -        } else {
               return null;
  +        } else {
  +            return "1";
           }
       }
   
  @@ -284,9 +284,9 @@
        */
       public SourceValidity generateValidity() {
           if (isEncodeURLNeeded()) {
  -            return NOPValidity.SHARED_INSTANCE;
  -        } else {
               return null;
  +        } else {
  +            return NOPValidity.SHARED_INSTANCE;
           }
       }
   
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message