Class SkinResourceReader
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.reading.AbstractReader
-
- org.apache.cocoon.reading.ServiceableReader
-
- org.ametys.plugins.skineditor.readers.SkinResourceReader
-
- All Implemented Interfaces:
Poolable,Recyclable,Component,LogEnabled,Serviceable,Reader,SitemapModelComponent,SitemapOutputComponent
public class SkinResourceReader extends ServiceableReader
Reader for temporary skin resources
-
-
Field Summary
Fields Modifier and Type Field Description private Collection<String>_allowedFormatsprotected FileSource_fileThe file sourceprivate int_heightprivate int_maxHeightprivate int_maxWidthprivate boolean_readForDownloadprotected SourceResolver_srcResolverThe source resolverprivate int_width-
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 private Source_getSource(String skinName, String path)voidgenerate()voidservice(ServiceManager smanager)voidsetup(SourceResolver res, Map objModel, String src, Parameters par)-
Methods inherited from class org.apache.cocoon.reading.AbstractReader
getLastModified, getMimeType, recycle, setOutputStream, shouldSetContentLength
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_srcResolver
protected SourceResolver _srcResolver
The source resolver
-
_file
protected FileSource _file
The file source
-
_readForDownload
private boolean _readForDownload
-
_width
private int _width
-
_height
private int _height
-
_maxWidth
private int _maxWidth
-
_maxHeight
private int _maxHeight
-
_allowedFormats
private Collection<String> _allowedFormats
-
-
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 res, Map objModel, String src, Parameters par) throws ProcessingException, SAXException, IOException
- Specified by:
setupin interfaceSitemapModelComponent- Overrides:
setupin classAbstractReader- Throws:
ProcessingExceptionSAXExceptionIOException
-
generate
public void generate() throws IOException, SAXException, ProcessingException
-
_getSource
private Source _getSource(String skinName, String path) throws IOException
- Throws:
IOException
-
-