public class ImageResourceHandler extends AbstractResourceHandler implements Component
| Modifier and Type | Field and Description |
|---|---|
private static Collection<String> |
__ALLOWED_FORMATS |
private static Pattern |
_SIZE_PATTERN |
_cocoonContext, _context, _resolver, _supportedSuffixesMAX_PRIORITY, MIN_PRIORITY| Constructor and Description |
|---|
ImageResourceHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
generateResource(Source source,
OutputStream out,
Parameters parameters)
Generate the resource configured during setup, and output it
|
Serializable |
getKey(Source source,
Parameters parameters)
Get the unique key for this resource, for cache purpose.
|
Source |
setup(String location,
Parameters par)
Initialize the resource handler with a resource.
|
configure, contextualize, getLastModified, getMimeType, getPriority, getSize, getValidity, isSupported, servicegetLogger, setLoggerprivate static final Pattern _SIZE_PATTERN
private static final Collection<String> __ALLOWED_FORMATS
public ImageResourceHandler()
public Source setup(String location, Parameters par) throws ProcessingException, IOException
ResourceHandlersetup in interface ResourceHandlersetup in class AbstractResourceHandlerlocation - The source uripar - The parametersProcessingException - If an error occursIOException - If an error occurspublic void generateResource(Source source, OutputStream out, Parameters parameters) throws IOException, ProcessingException
ResourceHandlergenerateResource in interface ResourceHandlersource - The sourceout - The output stream to write toparameters - The parametersIOException - If an error occursProcessingException - If an error occurspublic Serializable getKey(Source source, Parameters parameters)
ResourceHandlergetKey in interface ResourceHandlergetKey in class AbstractResourceHandlersource - The sourceparameters - The parameters