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, _supportedSuffixesMAX_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, serviceconfigure, contextualize, getLastModified, getPriority, getSize, getValidity, isSupportedgetLogger, setLoggerprotected 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
ResourceHandlersetup in interface ResourceHandlersetup in class I18nTextResourceHandlerlocation - 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)
ResourceHandlergetMimeType in interface ResourceHandlergetMimeType in class AbstractResourceHandlersource - The sourcepar - The parameters