Package org.ametys.core.captcha
Class BufferedImageReader
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.reading.AbstractReader
-
- org.ametys.core.captcha.BufferedImageReader
-
- All Implemented Interfaces:
Poolable
,Recyclable
,Component
,LogEnabled
,Reader
,SitemapModelComponent
,SitemapOutputComponent
public class BufferedImageReader extends AbstractReader
Read an image captcha given by its key
-
-
Field Summary
Fields Modifier and Type Field Description static String
REQUEST_ATTRIBUTE
The name of the request attribute which must contains the image-
Fields inherited from class org.apache.cocoon.reading.AbstractReader
objectModel, out, parameters, resolver, source
-
-
Constructor Summary
Constructors Constructor Description BufferedImageReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
generate()
String
getMimeType()
-
Methods inherited from class org.apache.cocoon.reading.AbstractReader
getLastModified, recycle, setOutputStream, setup, shouldSetContentLength
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
REQUEST_ATTRIBUTE
public static final String REQUEST_ATTRIBUTE
The name of the request attribute which must contains the image
-
-
Constructor Detail
-
BufferedImageReader
public BufferedImageReader()
-
-
Method Detail
-
generate
public void generate() throws IOException, SAXException, ProcessingException
-
getMimeType
public String getMimeType()
- Specified by:
getMimeType
in interfaceSitemapOutputComponent
- Overrides:
getMimeType
in classAbstractReader
-
-