Package org.ametys.core.resources
Class ResourceReader
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.reading.AbstractReader
org.ametys.core.resources.ResourceReader
- All Implemented Interfaces:
Poolable
,Recyclable
,Component
,Contextualizable
,LogEnabled
,Serviceable
,CacheableProcessingComponent
,Reader
,SitemapModelComponent
,SitemapOutputComponent
public class ResourceReader
extends AbstractReader
implements CacheableProcessingComponent, Serviceable, Contextualizable
Default resource reader, that handle different resources type using the ResourcesExtensionPoint.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
last modified parameter name for resources parametersFields inherited from class org.apache.cocoon.reading.AbstractReader
objectModel, out, parameters, resolver, source
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contextualize
(Context context) void
generate()
getKey()
long
void
recycle()
void
service
(ServiceManager sManager) void
setup
(SourceResolver res, Map objectModel, String source, Parameters parameters) 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:
-
-
Constructor Details
-
ResourceReader
public ResourceReader()
-
-
Method Details
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
setup
public void setup(SourceResolver res, Map objectModel, String source, Parameters parameters) throws ProcessingException, SAXException, IOException - Specified by:
setup
in interfaceSitemapModelComponent
- Overrides:
setup
in classAbstractReader
- Throws:
ProcessingException
SAXException
IOException
-
generate
- Specified by:
generate
in interfaceReader
- Throws:
IOException
ProcessingException
-
getKey
- Specified by:
getKey
in interfaceCacheableProcessingComponent
-
getValidity
- Specified by:
getValidity
in interfaceCacheableProcessingComponent
-
recycle
- Specified by:
recycle
in interfaceRecyclable
- Overrides:
recycle
in classAbstractReader
-
getMimeType
- Specified by:
getMimeType
in interfaceSitemapOutputComponent
- Overrides:
getMimeType
in classAbstractReader
-
getLastModified
- Specified by:
getLastModified
in interfaceReader
- Overrides:
getLastModified
in classAbstractReader
-