org.apache.cocoon.components.treeprocessor.sitemap
Class SerializeNode

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.components.treeprocessor.AbstractProcessingNode
          extended byorg.apache.cocoon.components.treeprocessor.PipelineEventComponentProcessingNode
              extended byorg.apache.cocoon.components.treeprocessor.sitemap.SerializeNode
All Implemented Interfaces:
ExecutionContext, Locatable, LogEnabled, ParameterizableProcessingNode, ProcessingNode, ThreadSafe

public class SerializeNode
extends PipelineEventComponentProcessingNode
implements ParameterizableProcessingNode

Version:
CVS $Id: SerializeNode.java 280345 2005-09-12 14:25:56Z cziegeler $
Author:
Sylvain Wallez, Upayavira

Field Summary
 
Fields inherited from class org.apache.cocoon.components.treeprocessor.PipelineEventComponentProcessingNode
pipelineHints, views
 
Fields inherited from class org.apache.cocoon.components.treeprocessor.AbstractProcessingNode
componentName, executor, location
 
Constructor Summary
SerializeNode(String name, VariableResolver source, VariableResolver mimeType, int statusCode)
          Build a SerializerNode having a name, a mime-type and a status code (HTTP codes).
 
Method Summary
 boolean invoke(Environment env, InvokeContext context)
          Process environment.
 void setParameters(Map parameterMap)
          Set the parameters of this node as a Map of VariableResolvers that will be resolved at process-time.
 
Methods inherited from class org.apache.cocoon.components.treeprocessor.PipelineEventComponentProcessingNode
hasViews, setPipelineHints, setViews
 
Methods inherited from class org.apache.cocoon.components.treeprocessor.AbstractProcessingNode
getLocation, getType, setLocation, setSitemapExecutor
 
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
 
Methods inherited from interface org.apache.cocoon.components.treeprocessor.ProcessingNode
getLocation
 

Constructor Detail

SerializeNode

public SerializeNode(String name,
                     VariableResolver source,
                     VariableResolver mimeType,
                     int statusCode)
Build a SerializerNode having a name, a mime-type and a status code (HTTP codes).

Parameters:
name - the name of the serializer to use.
mimeType - the mime-type, or null not specified.
statusCode - the HTTP response status code, or -1 if not specified.
Method Detail

setParameters

public void setParameters(Map parameterMap)
Description copied from interface: ParameterizableProcessingNode
Set the parameters of this node as a Map of VariableResolvers that will be resolved at process-time.

Specified by:
setParameters in interface ParameterizableProcessingNode

invoke

public final boolean invoke(Environment env,
                            InvokeContext context)
                     throws Exception
Description copied from interface: ProcessingNode
Process environment.

Specified by:
invoke in interface ProcessingNode
Throws:
Exception


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