public class ItemExportDownloadReader
extends org.apache.cocoon.reading.AbstractReader
implements org.apache.avalon.excalibur.pool.Recyclable
| Modifier and Type | Field and Description |
|---|---|
protected static int |
BUFFER_SIZE
How big a buffer should we use when reading from the bitstream before
writing to the HTTP response?
|
protected InputStream |
compressedExportInputStream
The bitstream file
|
protected String |
compressedExportName |
protected long |
compressedExportSize
The compressed export's reported size
|
protected static int |
expires
When should a download expire in milliseconds.
|
protected org.apache.cocoon.environment.Request |
request
The Cocoon request
|
protected org.apache.cocoon.environment.Response |
response
The Cocoon response
|
| Constructor and Description |
|---|
ItemExportDownloadReader() |
| Modifier and Type | Method and Description |
|---|---|
void |
generate()
Write the actual data out to the response.
|
String |
getMimeType()
Returns the mime-type of the bitstream.
|
void |
recycle()
Recycle
|
void |
setup(org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
org.apache.avalon.framework.parameters.Parameters par)
Set up the export reader.
|
protected static final int BUFFER_SIZE
protected static final int expires
protected org.apache.cocoon.environment.Response response
protected org.apache.cocoon.environment.Request request
protected InputStream compressedExportInputStream
protected long compressedExportSize
protected String compressedExportName
public void setup(org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
org.apache.avalon.framework.parameters.Parameters par)
throws org.apache.cocoon.ProcessingException,
SAXException,
IOException
setup in interface org.apache.cocoon.sitemap.SitemapModelComponentsetup in class org.apache.cocoon.reading.AbstractReaderorg.apache.cocoon.ProcessingExceptionSAXExceptionIOExceptionpublic void generate()
throws IOException,
SAXException,
org.apache.cocoon.ProcessingException
generate in interface org.apache.cocoon.reading.ReaderIOExceptionSAXExceptionorg.apache.cocoon.ProcessingExceptionpublic String getMimeType()
getMimeType in interface org.apache.cocoon.sitemap.SitemapOutputComponentgetMimeType in class org.apache.cocoon.reading.AbstractReaderpublic void recycle()
recycle in interface org.apache.avalon.excalibur.pool.Recyclablerecycle in class org.apache.cocoon.reading.AbstractReaderCopyright © 2014 DuraSpace. All Rights Reserved.