|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.avalon.framework.logger.AbstractLoggable | +--org.apache.cocoon.reading.AbstractReader | +--org.apache.cocoon.reading.ResourceReader
The ResourceReader
component is used to serve binary data
in a sitemap pipeline. It makes use of HTTP Headers to determine if
the requested resource should be written to the OutputStream
or if it can signal that it hasn't changed.
Parameters:
Field Summary |
Fields inherited from class org.apache.cocoon.reading.AbstractReader |
objectModel, out, parameters, resolver, source |
Fields inherited from interface org.apache.cocoon.reading.Reader |
ROLE |
Constructor Summary | |
ResourceReader()
|
Method Summary | |
void |
generate()
Generates the requested resource. |
long |
generateKey()
Generate the unique key. |
CacheValidity |
generateValidity()
Generate the validity object. |
long |
getLastModified()
|
java.lang.String |
getMimeType()
Returns the mime-type of the resource in process. |
void |
recycle()
Recycle the component |
void |
setup(SourceResolver resolver,
java.util.Map objectModel,
java.lang.String src,
org.apache.avalon.framework.parameters.Parameters par)
Setup the reader. |
Methods inherited from class org.apache.cocoon.reading.AbstractReader |
setOutputStream, shouldSetContentLength |
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 |
Constructor Detail |
public ResourceReader()
Method Detail |
public void setup(SourceResolver resolver, java.util.Map objectModel, java.lang.String src, org.apache.avalon.framework.parameters.Parameters par) throws ProcessingException, org.xml.sax.SAXException, java.io.IOException
InputStream
,
the length and the last modification date
setup
in interface SitemapModelComponent
setup
in class AbstractReader
ProcessingException
org.xml.sax.SAXException
java.io.IOException
public void recycle()
AbstractReader
recycle
in interface org.apache.avalon.excalibur.pool.Recyclable
recycle
in class AbstractReader
public long generateKey()
generateKey
in interface Cacheable
public CacheValidity generateValidity()
generateValidity
in interface Cacheable
null
if the
component is currently not cacheable.public long getLastModified()
getLastModified
in interface Reader
getLastModified
in class AbstractReader
public void generate() throws java.io.IOException, ProcessingException
generate
in interface Reader
java.io.IOException
ProcessingException
public java.lang.String getMimeType()
getMimeType
in interface SitemapOutputComponent
getMimeType
in class AbstractReader
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |