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, _supportedSuffixes
MAX_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, setup
getLogger, setLogger
public static final String LAST_MODIFIED
public DefaultResourceHandler()
public boolean isSupported(String source)
ResourceHandler
isSupported
in interface ResourceHandler
isSupported
in class AbstractResourceHandler
source
- The uri of resourcetrue
if the resource is supportedpublic int getPriority()
ResourceHandler
getPriority
in interface ResourceHandler
getPriority
in class AbstractResourceHandler
public void generateResource(Source source, OutputStream out, Parameters par) throws IOException, ProcessingException
ResourceHandler
generateResource
in interface ResourceHandler
source
- The sourceout
- The output stream to write topar
- The parametersIOException
- If an error occursProcessingException
- If an error occurs