|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.reading.AbstractReader
public abstract class 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 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(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.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.reading.Reader |
|---|
generate |
| Field Detail |
|---|
protected 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(SourceResolver resolver,
Map objectModel,
String src,
Parameters par)
throws ProcessingException,
SAXException,
IOException
SourceResolver the object model Map,
the source and sitemap Parameters used to process the request.
setup in interface SitemapModelComponentProcessingException
SAXException
IOExceptionpublic void setOutputStream(OutputStream out)
OutputStream
setOutputStream in interface SitemapOutputComponentpublic String getMimeType()
Reader
getMimeType in interface SitemapOutputComponentAbstractProcessingPipeline.setMimeTypeForSerializer(org.apache.cocoon.environment.Environment),
AbstractProcessingPipeline.setMimeTypeForReader(org.apache.cocoon.environment.Environment)public long getLastModified()
getLastModified in interface Readerpublic void recycle()
recycle in interface Recyclablepublic boolean shouldSetContentLength()
shouldSetContentLength in interface SitemapOutputComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||