public class DefaultResourceHandler extends AbstractResourceHandler implements Component
| Modifier and Type | Field and Description |
|---|---|
static String |
LAST_MODIFIED
last modified parameter name for resources parameters
|
_cocoonContext, _context, _resolver, _supportedSuffixesMAX_PRIORITY, MIN_PRIORITY| Constructor and Description |
|---|
DefaultResourceHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
generateResource(Source source,
OutputStream out,
Parameters par)
Generate the resource configured during setup, and output it
|
int |
getPriority()
Get the priority of this handler
|
boolean |
isSupported(String source)
Determines if the resource is supported by this handler
|
configure, contextualize, getKey, getLastModified, getMimeType, getSize, getValidity, service, setupgetLogger, setLoggerpublic static final String LAST_MODIFIED
public DefaultResourceHandler()
public boolean isSupported(String source)
ResourceHandlerisSupported in interface ResourceHandlerisSupported in class AbstractResourceHandlersource - The uri of resourcetrue if the resource is supportedpublic int getPriority()
ResourceHandlergetPriority in interface ResourceHandlergetPriority in class AbstractResourceHandlerpublic void generateResource(Source source, OutputStream out, Parameters par) throws IOException, ProcessingException
ResourceHandlergenerateResource in interface ResourceHandlersource - The sourceout - The output stream to write topar - The parametersIOException - If an error occursProcessingException - If an error occurs