public class SiteResourceReader extends RuntimeResourceReader
_manager, LAST_MODIFIED
bufferSize, byteRanges, configuredBufferSize, configuredByteRanges, configuredExpires, configuredQuickTest, expires, inputSource, quickTest, request, response
objectModel, out, parameters, resolver, source
Constructor and Description |
---|
SiteResourceReader() |
Modifier and Type | Method and Description |
---|---|
protected void |
setAttachmentContentDisposition(FileSource fileSource)
Sets the Content-Disposition header as "attachment" with the wanted filename.
|
void |
setup(SourceResolver res,
Map cocoonObjectModel,
String src,
Parameters par) |
generate, getKey, service
configure, getLastModified, getMimeType, getValidity, hasRanges, parameterize, processStream, recycle, setupHeaders
setOutputStream, shouldSetContentLength
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public SiteResourceReader()
public void setup(SourceResolver res, Map cocoonObjectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException
setup
in interface SitemapModelComponent
setup
in class RuntimeResourceReader
ProcessingException
SAXException
IOException
protected void setAttachmentContentDisposition(FileSource fileSource)
fileSource
- the file source.