public class DefaultResourceHandler extends AbstractResourceHandler implements Component
_cocoonContext, _context, _resolver, _supportedSuffixesMAX_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, setupgetLogger, setLoggerpublic 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, Map objectModel, Parameters parameters, Map<String,Object> additionalParameters) throws IOException, ProcessingException
ResourceHandlergenerateResource in interface ResourceHandlersource - The sourceout - The output stream to write toobjectModel - The object modelparameters - The sitemap parametersadditionalParameters - Additional parametersIOException - If an error occursProcessingException - If an error occurs