public class ExpiresResourceHandler extends AbstractResourceHandler
_cocoonContext, _context, _resolver, _supportedSuffixes
MAX_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, service
getLogger, setLogger
public ExpiresResourceHandler()
public int getPriority()
ResourceHandler
getPriority
in interface ResourceHandler
getPriority
in class AbstractResourceHandler
public Source setup(String location, Map objectModel, Parameters par, Map<String,Object> additionalParameters) throws IOException, ProcessingException
ResourceHandler
setup
in interface ResourceHandler
setup
in class AbstractResourceHandler
location
- 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
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