org.apache.cocoon
Interface Processor

All Superinterfaces:
org.apache.avalon.framework.component.Component
All Known Subinterfaces:
Sitemap
All Known Implementing Classes:
ProcessorWrapper, Cocoon, TreeProcessor, SitemapManager, Handler

public interface Processor
extends org.apache.avalon.framework.component.Component

Version:
CVS $Id: Processor.java,v 1.6 2002/02/22 07:03:48 cziegeler Exp $
Author:
Pierpaolo Fumagalli (Apache Software Foundation, Exoffice Technologies)

Field Summary
static java.lang.String ROLE
           
 
Method Summary
 boolean process(Environment environment)
          Process the given Environment producing the output.
 boolean process(Environment environment, StreamPipeline pipeline, EventPipeline eventPipeline)
          Process the given Environment to assemble a StreamPipeline and an EventPipeline.
 

Field Detail

ROLE

public static final java.lang.String ROLE
Method Detail

process

public boolean process(Environment environment)
                throws java.lang.Exception
Process the given Environment producing the output.
Returns:
If the processing is successfull true is returned. If not match is found in the sitemap false is returned.
Throws:
ResourceNotFoundException - If a sitemap component tries to access a resource which can not be found, e.g. the generator ConnectionResetException If the connection was reset

process

public boolean process(Environment environment,
                       StreamPipeline pipeline,
                       EventPipeline eventPipeline)
                throws java.lang.Exception
Process the given Environment to assemble a StreamPipeline and an EventPipeline.


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.