|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.util.AbstractLogEnabled org.apache.cocoon.reading.AbstractReader
A reader can be used to generate binary output for a request. This abstract class helps in implementing a custom reader.
Field Summary | |
protected Map |
objectModel
The current Map of the object model. |
protected OutputStream |
out
The OutputStream to write on. |
protected Parameters |
parameters
The current Parameters . |
protected org.apache.cocoon.environment.SourceResolver |
resolver
The current SourceResolver . |
protected String |
source
The source URI associated with the request or null. |
Fields inherited from interface org.apache.cocoon.reading.Reader |
ROLE |
Constructor Summary | |
AbstractReader()
|
Method Summary | |
long |
getLastModified()
|
String |
getMimeType()
Get the mime-type of the output of this Reader |
void |
recycle()
Recycle the component |
void |
setOutputStream(OutputStream out)
Set the OutputStream |
void |
setup(org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
Parameters par)
Set the SourceResolver the object model Map ,
the source and sitemap Parameters used to process the request. |
boolean |
shouldSetContentLength()
Test if the component wants to set the content length |
Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled |
getLogger, setLogger |
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.reading.Reader |
generate |
Field Detail |
protected org.apache.cocoon.environment.SourceResolver resolver
SourceResolver
.
protected Map objectModel
Map
of the object model.
protected Parameters parameters
Parameters
.
protected String source
protected OutputStream out
OutputStream
to write on.
Constructor Detail |
public AbstractReader()
Method Detail |
public void setup(org.apache.cocoon.environment.SourceResolver resolver, Map objectModel, String src, Parameters par) throws org.apache.cocoon.ProcessingException, SAXException, IOException
SourceResolver
the object model Map
,
the source and sitemap Parameters
used to process the request.
setup
in interface org.apache.cocoon.sitemap.SitemapModelComponent
org.apache.cocoon.ProcessingException
SAXException
IOException
public void setOutputStream(OutputStream out)
OutputStream
setOutputStream
in interface org.apache.cocoon.sitemap.SitemapOutputComponent
public String getMimeType()
Reader
getMimeType
in interface org.apache.cocoon.sitemap.SitemapOutputComponent
public long getLastModified()
getLastModified
in interface org.apache.cocoon.reading.Reader
public void recycle()
recycle
in interface Recyclable
public boolean shouldSetContentLength()
shouldSetContentLength
in interface org.apache.cocoon.sitemap.SitemapOutputComponent
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |