public class ExpiresResourceHandler extends AbstractResourceHandler
_cocoonContext, _context, _resolver, _supportedSuffixesMAX_PRIORITY, MIN_PRIORITY| Constructor and Description |
|---|
ExpiresResourceHandler() |
| 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
|
Source |
setup(String location,
Map objectModel,
Parameters par,
Map<String,Object> additionalParameters)
Initialize the resource handler with a resource.
|
configure, contextualize, getKey, getLastModified, getMimeType, getSize, getValidity, isSupported, servicegetLogger, setLoggerpublic ExpiresResourceHandler()
public int getPriority()
ResourceHandlergetPriority in interface ResourceHandlergetPriority in class AbstractResourceHandlerpublic Source setup(String location, Map objectModel, Parameters par, Map<String,Object> additionalParameters) throws IOException, ProcessingException
ResourceHandlersetup in interface ResourceHandlersetup in class AbstractResourceHandlerlocation - The source uriobjectModel - The object modelpar - The parametersadditionalParameters - Additional parameters that can be filled, and will be transmitted to getKey, getValidity and generateResourceIOException - If an error occursProcessingException - If an error occurspublic void generateResource(Source source, OutputStream out, Map objectModel, Parameters parameters, Map<String,Object> additionalParameters) throws IOException, ProcessingException
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