public class JSResourceHandler extends I18nTextResourceHandler
Modifier and Type | Field and Description |
---|---|
protected static String |
__PARAMETER_SET_EXPIRES_HEADER_TO_NO_CACHE
Parameter to enable or not the expire 0 header.
|
_cocoonContext, _context, _resolver, _supportedSuffixes
MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
JSResourceHandler() |
Modifier and Type | Method and Description |
---|---|
String |
getMimeType(Source source,
Parameters par)
Return the mime type of the configured resource.
|
Source |
setup(String location,
Map objectModel,
Parameters par,
Map<String,Object> additionalParameters)
Initialize the resource handler with a resource.
|
generateResource, getKey, getLocale, service
configure, contextualize, getLastModified, getPriority, getSize, getValidity, isSupported
getLogger, setLogger
protected static final String __PARAMETER_SET_EXPIRES_HEADER_TO_NO_CACHE
public JSResourceHandler()
public Source setup(String location, Map objectModel, Parameters par, Map<String,Object> additionalParameters) throws ProcessingException, IOException
ResourceHandler
setup
in interface ResourceHandler
setup
in class I18nTextResourceHandler
location
- The source uriobjectModel
- The object modelpar
- The parametersadditionalParameters
- Additional parameters that can be filled, and will be transmitted to getKey, getValidity and generateResourceProcessingException
- If an error occursIOException
- If an error occurspublic String getMimeType(Source source, Parameters par)
ResourceHandler
getMimeType
in interface ResourceHandler
getMimeType
in class AbstractResourceHandler
source
- The sourcepar
- The parameters