org.apache.cocoon.ant
Class CocoonProcessorDelegate

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.ant.CocoonProcessorDelegate
All Implemented Interfaces:
Configurable, Contextualizable, Initializable, LogEnabled

public class CocoonProcessorDelegate
extends AbstractLogEnabled
implements Contextualizable, Configurable, Initializable

A facade for Cocoon processing

Version:
CVS $Id: CocoonProcessorDelegate.java 30941 2004-07-29 19:56:58Z vgritsenko $
Author:
huber@apache.org

Constructor Summary
CocoonProcessorDelegate(Cocoon cocoon)
          Constructor for the CocoonProcessorDelegate object
 
Method Summary
 void configure(Configuration configuration)
          Description of the Method
 void contextualize(Context context)
          Description of the Method
 void dumpVisitedLinks()
          dump a list of all visited uris, its content-type, and its outbound links
protected  Collection getLinks(UriType uriType, Map parameters)
          Gets the links attribute of the CocoonProcessorDelegate object
protected  void getPage(UriType uriType, Map parameters, Map links, DelayedFileOutputStream dfos)
          Processes an Uri for its content.
 void initialize()
          Description of the Method
 void processAllUris(Set uris)
          Description of the Method
 void processUri(UriType uriType)
          process a single Uri, resolve followingLink internally
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CocoonProcessorDelegate

public CocoonProcessorDelegate(Cocoon cocoon)
Constructor for the CocoonProcessorDelegate object

Parameters:
cocoon - Description of Parameter
Method Detail

contextualize

public void contextualize(Context context)
                   throws ContextException
Description of the Method

Specified by:
contextualize in interface Contextualizable
Parameters:
context - Description of Parameter
Throws:
ContextException - Description of Exception

configure

public void configure(Configuration configuration)
               throws ConfigurationException
Description of the Method

Specified by:
configure in interface Configurable
Parameters:
configuration - Description of Parameter
Throws:
ConfigurationException - Description of Exception

initialize

public void initialize()
                throws Exception
Description of the Method

Specified by:
initialize in interface Initializable
Throws:
Exception - Description of Exception

processAllUris

public void processAllUris(Set uris)
                    throws ProcessingException
Description of the Method

Parameters:
uris - Description of Parameter
Throws:
ProcessingException - Description of Exception

processUri

public void processUri(UriType uriType)
                throws ProcessingException
process a single Uri, resolve followingLink internally

Parameters:
uriType - Description of Parameter
Throws:
ProcessingException - Description of Exception

dumpVisitedLinks

public void dumpVisitedLinks()
dump a list of all visited uris, its content-type, and its outbound links


getPage

protected void getPage(UriType uriType,
                       Map parameters,
                       Map links,
                       DelayedFileOutputStream dfos)
                throws Exception
Processes an Uri for its content.

Parameters:
parameters - a Map value containing request parameters
links - a Map value
uriType - Description of Parameter
dfos - Description of Parameter
Throws:
Exception - Description of Exception

getLinks

protected Collection getLinks(UriType uriType,
                              Map parameters)
                       throws Exception
Gets the links attribute of the CocoonProcessorDelegate object

Parameters:
uriType - Description of Parameter
parameters - Description of Parameter
Returns:
The links value
Throws:
Exception - Description of Exception


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.