public class MinimizedJSResourceHandler extends JSResourceHandler
Modifier and Type | Field and Description |
---|---|
private static String |
__FILE_LOCATION |
private static String |
__REAL_FILE_URI |
protected MinimizeJSManager |
_jSMinimizeManager
JS minimize manager
|
__PARAMETER_SET_EXPIRES_HEADER_TO_NO_CACHE
_cocoonContext, _context, _resolver, _supportedSuffixes
MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
MinimizedJSResourceHandler() |
Modifier and Type | Method and Description |
---|---|
void |
generateResource(Source source,
OutputStream out,
Map objectModel,
Parameters par,
Map<String,Object> additionalParameters)
Generate the resource configured during setup, and output it
|
Serializable |
getKey(Source source,
Map objectModel,
Parameters parameters,
Map<String,Object> additionalParameters)
Get the unique key for this resource, for cache purpose.
|
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.
|
getMimeType
getLocale
configure, contextualize, getLastModified, getSize, getValidity, isSupported
getLogger, setLogger
private static final String __REAL_FILE_URI
private static final String __FILE_LOCATION
protected MinimizeJSManager _jSMinimizeManager
public MinimizedJSResourceHandler()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class I18nTextResourceHandler
ServiceException
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 JSResourceHandler
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 Serializable getKey(Source source, Map objectModel, Parameters parameters, Map<String,Object> additionalParameters)
ResourceHandler
getKey
in interface ResourceHandler
getKey
in class I18nTextResourceHandler
source
- The sourceobjectModel
- The object modelparameters
- The parametersadditionalParameters
- Additional parameterspublic void generateResource(Source source, OutputStream out, Map objectModel, Parameters par, Map<String,Object> additionalParameters) throws IOException, ProcessingException
ResourceHandler
generateResource
in interface ResourceHandler
generateResource
in class I18nTextResourceHandler
source
- The sourceout
- The output stream to write toobjectModel
- The object modelpar
- The sitemap parametersadditionalParameters
- Additional parametersIOException
- If an error occursProcessingException
- If an error occurs