org.apache.cocoon.reading
Class VirtualPipelineReader

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.xml.AbstractXMLProducer
          extended byorg.apache.cocoon.xml.AbstractXMLPipe
              extended byorg.apache.cocoon.sitemap.impl.AbstractVirtualSitemapComponent
                  extended byorg.apache.cocoon.reading.VirtualPipelineReader
All Implemented Interfaces:
Configurable, ContentHandler, Contextualizable, LexicalHandler, LogEnabled, Poolable, Reader, Recyclable, Serviceable, SitemapModelComponent, SitemapOutputComponent, XMLConsumer, XMLConsumer, XMLPipe, XMLProducer

public class VirtualPipelineReader
extends AbstractVirtualSitemapComponent
implements Reader


Field Summary
 
Fields inherited from class org.apache.cocoon.sitemap.impl.AbstractVirtualSitemapComponent
context, manager, resolver
 
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
 
Fields inherited from interface org.apache.cocoon.reading.Reader
ROLE
 
Constructor Summary
VirtualPipelineReader()
           
 
Method Summary
 void generate()
          Generate the response.
 long getLastModified()
           
 String getMimeType()
          Get the mime-type of the output of this Reader
protected  String getTypeName()
           
 void setOutputStream(OutputStream out)
          Set the OutputStream
 boolean shouldSetContentLength()
          Test if the component wants to set the content length
 
Methods inherited from class org.apache.cocoon.sitemap.impl.AbstractVirtualSitemapComponent
configure, contextualize, getMappedSourceEnvironment, getPipeline, getVPCEnvironment, recycle, service, setup
 
Methods inherited from class org.apache.cocoon.xml.AbstractXMLPipe
characters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping
 
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandler
 
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.sitemap.SitemapModelComponent
setup
 
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
 

Constructor Detail

VirtualPipelineReader

public VirtualPipelineReader()
Method Detail

getTypeName

protected String getTypeName()
Specified by:
getTypeName in class AbstractVirtualSitemapComponent

setOutputStream

public void setOutputStream(OutputStream out)
Set the OutputStream

Specified by:
setOutputStream in interface SitemapOutputComponent
Parameters:
out - The OutputStream target for the rendered results.

getMimeType

public String getMimeType()
Get the mime-type of the output of this Reader

Specified by:
getMimeType in interface SitemapOutputComponent
Returns:
the mime-type for the results.

getLastModified

public long getLastModified()
Specified by:
getLastModified in interface Reader
Returns:
the time the read source was last modified or 0 if it is not possible to detect

shouldSetContentLength

public boolean shouldSetContentLength()
Test if the component wants to set the content length

Specified by:
shouldSetContentLength in interface SitemapOutputComponent
Returns:
true if the content length needs to be set.

generate

public void generate()
              throws IOException,
                     SAXException,
                     ProcessingException
Description copied from interface: Reader
Generate the response.

Specified by:
generate in interface Reader
Throws:
IOException
SAXException
ProcessingException


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