public class MinimizedCSSResourceHandler extends AbstractResourceHandler
| Modifier and Type | Field and Description |
|---|---|
private static String |
__MINIMIZED_URI |
private static String |
__ORIGINAL_URI |
protected MinimizeCSSManager |
_cssMinimizeManager
JS minimize manager
|
private JSASSResourceURIExtensionPoint |
_jsassResourceURIExtensionPoint |
_cocoonContext, _context, _resolver, _supportedSuffixesMAX_PRIORITY, MIN_PRIORITY| Constructor and Description |
|---|
MinimizedCSSResourceHandler() |
| 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
|
boolean |
isSupported(String source)
Determines if the resource is supported by 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, getLastModified, getMimeType, getSize, getValiditygetLogger, setLoggerprivate static final String __ORIGINAL_URI
private static final String __MINIMIZED_URI
protected MinimizeCSSManager _cssMinimizeManager
private JSASSResourceURIExtensionPoint _jsassResourceURIExtensionPoint
public MinimizedCSSResourceHandler()
public void service(ServiceManager manager) throws ServiceException
service in interface Serviceableservice in class AbstractResourceHandlerServiceExceptionpublic boolean isSupported(String source)
ResourceHandlerisSupported in interface ResourceHandlerisSupported in class AbstractResourceHandlersource - The uri of resourcetrue if the resource is supportedpublic 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 occurspublic Serializable getKey(Source source, Map objectModel, Parameters parameters, Map<String,Object> additionalParameters)
ResourceHandlergetKey in interface ResourceHandlergetKey in class AbstractResourceHandlersource - 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
ResourceHandlersource - The sourceout - The output stream to write toobjectModel - The object modelpar - The sitemap parametersadditionalParameters - Additional parametersIOException - If an error occursProcessingException - If an error occurs