Package org.ametys.core.resources
Class CssResourceHandler
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.resources.SimpleResourceHandler
org.ametys.core.resources.ExpiresResourceHandler
org.ametys.core.resources.CssResourceHandler
- All Implemented Interfaces:
ResourceHandler
,LogEnabled
,Contextualizable
,Serviceable
Resource handler for CSS files
-
Field Summary
Fields inherited from class org.ametys.core.resources.SimpleResourceHandler
_objectModel, _parameters, _readForDownload, _requestedLocation, _resolver, _source
-
Constructor Summary
ConstructorDescriptionDefault constructorCssResourceHandler
(Source source) Constructor with an already resolvedSource
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
generate
(OutputStream out) Generate the resource configured during setup, and output itgetKey()
Get the unique key for this resource, for cache purpose.void
service
(ServiceManager manager) Methods inherited from class org.ametys.core.resources.ExpiresResourceHandler
contextualize, setup
Methods inherited from class org.ametys.core.resources.SimpleResourceHandler
getLastModified, getMimeType, getValidity
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.core.resources.ResourceHandler
acceptRanges, generate, getLength, shouldUseSourceContentLength
-
Constructor Details
-
CssResourceHandler
public CssResourceHandler()Default constructor -
CssResourceHandler
Constructor with an already resolvedSource
.- Parameters:
source
- the source
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classSimpleResourceHandler
- Throws:
ServiceException
-
getKey
Description copied from interface:ResourceHandler
Get the unique key for this resource, for cache purpose.- Specified by:
getKey
in interfaceResourceHandler
- Overrides:
getKey
in classSimpleResourceHandler
- Returns:
- The cache key.
-
generate
Description copied from interface:ResourceHandler
Generate the resource configured during setup, and output it- Specified by:
generate
in interfaceResourceHandler
- Overrides:
generate
in classSimpleResourceHandler
- Parameters:
out
- The output stream to write to- Throws:
IOException
- If an error occursProcessingException
- If an error occurs
-