public abstract class AbstractSourceMapResourceHandler extends AbstractResourceHandler
| Modifier and Type | Field and Description |
|---|---|
protected HashCache |
_hashCache
Hash Cache for Hashed resources
|
protected SourceMapCache |
_sourceMapCache
SourceMapCache
|
_cocoonContext, _context, _resolver, _supportedSuffixesMAX_PRIORITY, MIN_PRIORITY| Constructor and Description |
|---|
AbstractSourceMapResourceHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Source |
_getAlternateSource(String location,
Map objectModel)
Find the source at an alternative location
|
protected Source |
_getExistingSource(String location)
Try to retrieve an existing source
|
void |
generateResource(Source source,
OutputStream out,
Map objectModel,
Parameters parameters,
Map<String,Object> additionalParameters)
Generate the resource configured during setup, and output it
|
String |
getMimeType(Source source,
Parameters par)
Return the mime type of the configured resource.
|
int |
getPriority()
Get the priority of this handler
|
void |
service(ServiceManager manager) |
Source |
setup(String location,
Map objectModel,
Parameters par,
Map<String,Object> additionalParameters)
Initialize the resource handler with a resource.
|
configure, contextualize, getKey, getLastModified, getSize, getValidity, isSupportedgetLogger, setLoggerprotected SourceMapCache _sourceMapCache
protected HashCache _hashCache
public AbstractSourceMapResourceHandler()
public void service(ServiceManager manager) throws ServiceException
service in interface Serviceableservice in class AbstractResourceHandlerServiceExceptionpublic String getMimeType(Source source, Parameters par)
ResourceHandlergetMimeType in interface ResourceHandlergetMimeType in class AbstractResourceHandlersource - The sourcepar - The parameterspublic 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 occursprotected abstract Source _getAlternateSource(String location, Map objectModel) throws ProcessingException, IOException
location - The original locationobjectModel - The object modelIOException - If an error occurredProcessingException - If an error occurredprotected Source _getExistingSource(String location)
location - The locationpublic 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