Package org.ametys.skinfactory.readers
Class SkinResourceReader
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.reading.AbstractReader
-
- org.apache.cocoon.reading.ServiceableReader
-
- org.ametys.skinfactory.readers.SkinResourceReader
-
- All Implemented Interfaces:
Poolable,Recyclable,Component,LogEnabled,Serviceable,CacheableProcessingComponent,Reader,SitemapModelComponent,SitemapOutputComponent
public class SkinResourceReader extends ServiceableReader implements CacheableProcessingComponent
Reader for resource of the skin
-
-
Field Summary
-
Fields inherited from class org.apache.cocoon.reading.ServiceableReader
manager
-
Fields inherited from class org.apache.cocoon.reading.AbstractReader
objectModel, out, parameters, resolver, source
-
-
Constructor Summary
Constructors Constructor Description SkinResourceReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgenerate()SerializablegetKey()longgetLastModified()StringgetMimeType()SourceValiditygetValidity()voidrecycle()voidservice(ServiceManager sManager)voidsetup(SourceResolver sResolver, Map objModel, String src, Parameters par)-
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
-
-
-
-
Constructor Detail
-
SkinResourceReader
public SkinResourceReader()
-
-
Method Detail
-
service
public void service(ServiceManager sManager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classServiceableReader- Throws:
ServiceException
-
setup
public void setup(SourceResolver sResolver, Map objModel, String src, Parameters par) throws ProcessingException, SAXException, IOException
- Specified by:
setupin interfaceSitemapModelComponent- Overrides:
setupin classAbstractReader- Throws:
ProcessingExceptionSAXExceptionIOException
-
getKey
public Serializable getKey()
- Specified by:
getKeyin interfaceCacheableProcessingComponent
-
getValidity
public SourceValidity getValidity()
- Specified by:
getValidityin interfaceCacheableProcessingComponent
-
getLastModified
public long getLastModified()
- Specified by:
getLastModifiedin interfaceReader- Overrides:
getLastModifiedin classAbstractReader
-
getMimeType
public String getMimeType()
- Specified by:
getMimeTypein interfaceSitemapOutputComponent- Overrides:
getMimeTypein classAbstractReader
-
generate
public void generate() throws IOException, SAXException, ProcessingException
- Specified by:
generatein interfaceReader- Throws:
IOExceptionSAXExceptionProcessingException
-
recycle
public void recycle()
- Specified by:
recyclein interfaceRecyclable- Overrides:
recyclein classAbstractReader
-
-