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