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

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLoggable
        |
        +--org.apache.cocoon.components.treeprocessor.AbstractProcessingNode
              |
              +--org.apache.cocoon.components.treeprocessor.sitemap.ReadNode
All Implemented Interfaces:
org.apache.avalon.framework.logger.Loggable, ParameterizableProcessingNode, ProcessingNode, org.apache.avalon.framework.thread.ThreadSafe

public class ReadNode
extends AbstractProcessingNode
implements ParameterizableProcessingNode

Version:
CVS $Id: ReadNode.java,v 1.1 2002/03/05 08:26:23 sylvain Exp $
Author:
Sylvain Wallez

Fields inherited from class org.apache.cocoon.components.treeprocessor.AbstractProcessingNode
location
 
Fields inherited from interface org.apache.cocoon.components.treeprocessor.ProcessingNode
OBJECT_SOURCE_RESOLVER
 
Constructor Summary
ReadNode(java.lang.String name, java.lang.String source, java.lang.String 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(java.util.Map parameterMap)
          Set the parameters of this node as a Map of MapStackResolvers that will be resolved at process-time.
 
Methods inherited from class org.apache.cocoon.components.treeprocessor.AbstractProcessingNode
getLocation, getSourceResolver, setLocation
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable
getLogger, setLogger, 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

ReadNode

public ReadNode(java.lang.String name,
                java.lang.String source,
                java.lang.String mimeType,
                int statusCode)
         throws PatternException
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(java.util.Map parameterMap)
Description copied from interface: ParameterizableProcessingNode
Set the parameters of this node as a Map of MapStackResolvers that will be resolved at process-time.
Specified by:
setParameters in interface ParameterizableProcessingNode

invoke

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


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