Package org.ametys.core.cocoon
Class RuntimeResourceReader
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.reading.AbstractReader
org.apache.cocoon.reading.ResourceReader
org.ametys.core.cocoon.RuntimeResourceReader
- All Implemented Interfaces:
Poolable
,Recyclable
,Component
,Configurable
,LogEnabled
,Serviceable
,CacheableProcessingComponent
,Reader
,SitemapModelComponent
,SitemapOutputComponent
- Direct Known Subclasses:
SiteResourceReader
Resource reader but where the source resolver is the runtime one.
-
Field Summary
Modifier and TypeFieldDescriptionprotected ServiceManager
the avalon service managerstatic final String
last modified parameter name for resources parametersFields inherited from class org.apache.cocoon.reading.ResourceReader
bufferSize, byteRanges, configuredBufferSize, configuredByteRanges, configuredExpires, configuredQuickTest, expires, inputSource, quickTest, request, response
Fields inherited from class org.apache.cocoon.reading.AbstractReader
objectModel, out, parameters, resolver, source
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
generate()
getKey()
void
service
(ServiceManager manager) void
setup
(SourceResolver initialResolver, Map cocoonObjectModel, String src, Parameters par) Methods inherited from class org.apache.cocoon.reading.ResourceReader
configure, getLastModified, getMimeType, getValidity, hasRanges, parameterize, processStream, recycle, setupHeaders
Methods inherited from class org.apache.cocoon.reading.AbstractReader
setOutputStream, shouldSetContentLength
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
LAST_MODIFIED
last modified parameter name for resources parameters- See Also:
-
_manager
the avalon service manager
-
-
Constructor Details
-
RuntimeResourceReader
public RuntimeResourceReader()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
setup
public void setup(SourceResolver initialResolver, Map cocoonObjectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException - Specified by:
setup
in interfaceSitemapModelComponent
- Overrides:
setup
in classResourceReader
- Throws:
ProcessingException
SAXException
IOException
-
getKey
- Specified by:
getKey
in interfaceCacheableProcessingComponent
- Overrides:
getKey
in classResourceReader
-
generate
- Specified by:
generate
in interfaceReader
- Overrides:
generate
in classResourceReader
- Throws:
IOException
ProcessingException
-