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 2004/08/29 15:51:15 UTC
svn commit: rev 37173 - cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/pipeline
Author: cziegeler
Date: Sun Aug 29 06:51:14 2004
New Revision: 37173
Modified:
cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java
Log:
Sync pipeline package
Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java (original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java Sun Aug 29 06:51:14 2004
@@ -54,7 +54,7 @@
*
* @since 2.1
* @author <a href="mailto:cziegeler@apache.org">Carsten Ziegeler</a>
- * @version CVS $Id: AbstractProcessingPipeline.java,v 1.21 2004/04/26 21:28:39 ugo Exp $
+ * @version CVS $Id$
*/
public abstract class AbstractProcessingPipeline
extends AbstractLogEnabled
@@ -570,8 +570,15 @@
} else {
environment.setContentType(this.sitemapReaderMimeType);
}
+ // set the expires parameter on the pipeline if the reader is configured with one
+ if (readerParam.isParameter("expires")) {
+ // should this checking be done somewhere else??
+ this.expires = readerParam.getParameterAsLong("expires");
+ }
} catch (SAXException e){
throw new ProcessingException("Failed to execute reader pipeline.", e);
+ } catch (ParameterException e) {
+ throw new ProcessingException("Expires parameter needs to be of type long.",e);
} catch (IOException e){
throw new ProcessingException("Failed to execute reader pipeline.", e);
}