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
FieldsModifier and TypeFieldDescriptionstatic final Stringlast modified parameter name for resources parametersFields inherited from class org.apache.cocoon.reading.AbstractReader
objectModel, out, parameters, resolver, source -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextualize(Context context) voidgenerate()getKey()longvoidrecycle()voidservice(ServiceManager sManager) voidsetup(SourceResolver res, Map objectModel, String source, Parameters parameters) Methods inherited from class org.apache.cocoon.reading.AbstractReader
setOutputStream, shouldSetContentLengthMethods 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:
contextualizein interfaceContextualizable- Throws:
ContextException
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
setup
public void setup(SourceResolver res, Map objectModel, String source, Parameters parameters) throws ProcessingException, SAXException, IOException - Specified by:
setupin interfaceSitemapModelComponent- Overrides:
setupin classAbstractReader- Throws:
ProcessingExceptionSAXExceptionIOException
-
generate
- Specified by:
generatein interfaceReader- Throws:
IOExceptionProcessingException
-
getKey
- Specified by:
getKeyin interfaceCacheableProcessingComponent
-
getValidity
- Specified by:
getValidityin interfaceCacheableProcessingComponent
-
recycle
- Specified by:
recyclein interfaceRecyclable- Overrides:
recyclein classAbstractReader
-
getMimeType
- Specified by:
getMimeTypein interfaceSitemapOutputComponent- Overrides:
getMimeTypein classAbstractReader
-
getLastModified
- Specified by:
getLastModifiedin interfaceReader- Overrides:
getLastModifiedin classAbstractReader
-