You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2003/08/06 11:26:44 UTC
cvs commit: cocoon-2.1/src/java/org/apache/cocoon/caching CachedResponse.java
cziegeler 2003/08/06 02:26:44
Modified: src/java/org/apache/cocoon/caching CachedResponse.java
Log:
Adding convenience constructor
Revision Changes Path
1.4 +12 -1 cocoon-2.1/src/java/org/apache/cocoon/caching/CachedResponse.java
Index: CachedResponse.java
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/caching/CachedResponse.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- CachedResponse.java 14 Jul 2003 16:06:21 -0000 1.3
+++ CachedResponse.java 6 Aug 2003 09:26:44 -0000 1.4
@@ -88,6 +88,17 @@
/**
* Create a new entry for the cache.
*
+ * @param validityObject The SourceValidity object
+ * @param response The cached sax stream or character stream
+ */
+ public CachedResponse(SourceValidity validityObject,
+ byte[] response) {
+ this(new SourceValidity[] {validityObject}, response, null);
+ }
+
+ /**
+ * Create a new entry for the cache.
+ *
* @param validityObjects The SourceValidity objects in the order
* they occured in the pipeline
* @param response The cached sax stream or character stream