public class DefaultResourceHandler extends AbstractResourceHandler implements Component
_cocoonContext, _context, _resolver, _supportedSuffixes
MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
DefaultResourceHandler() |
Modifier and Type | Method and Description |
---|---|
void |
generateResource(Source source,
OutputStream out,
Map objectModel,
Parameters parameters,
Map<String,Object> additionalParameters)
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 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, Map objectModel, Parameters parameters, Map<String,Object> additionalParameters) throws IOException, ProcessingException
ResourceHandler
generateResource
in interface ResourceHandler
source
- The sourceout
- The output stream to write toobjectModel
- The object modelparameters
- The sitemap parametersadditionalParameters
- Additional parametersIOException
- If an error occursProcessingException
- If an error occurs