org.apache.cocoon.reading
Interface Reader

All Superinterfaces:
Component, SitemapModelComponent, SitemapOutputComponent
All Known Implementing Classes:
AbstractReader, AxisRPCReader, CaptchaReader, ComposerReader, DatabaseReader, EventAwareReader, ImageOpReader, ImageReader, JSPReader, ProxyReader, ResourceReader, ServiceableReader

public interface Reader
extends SitemapModelComponent, SitemapOutputComponent

A reader can be used to generate binary output for a request.

Version:
CVS $Id: Reader.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Giacomo Pati

Field Summary
static String ROLE
           
 
Method Summary
 void generate()
          Generate the response.
 long getLastModified()
           
 
Methods inherited from interface org.apache.cocoon.sitemap.SitemapModelComponent
setup
 
Methods inherited from interface org.apache.cocoon.sitemap.SitemapOutputComponent
getMimeType, setOutputStream, shouldSetContentLength
 

Field Detail

ROLE

static final String ROLE
Method Detail

generate

void generate()
              throws IOException,
                     SAXException,
                     ProcessingException
Generate the response.

Throws:
IOException
SAXException
ProcessingException

getLastModified

long getLastModified()
Returns:
the time the read source was last modified or 0 if it is not possible to detect


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.