public class UncompiledSassResourceHandler extends AbstractResourceHandler
_cocoonContext, _context, _resolver, _supportedSuffixes
MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
UncompiledSassResourceHandler() |
Modifier and Type | Method and Description |
---|---|
private Source |
_getSource(String location) |
void |
generateResource(Source source,
OutputStream out,
Map objectModel,
Parameters parameters,
Map<String,Object> additionalParameters)
Generate the resource configured during setup, and output it
|
String |
getMimeType(Source source,
Parameters par)
Return the mime type of the configured resource.
|
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.
|
configure, contextualize, getKey, getLastModified, getSize, getValidity, isSupported
getLogger, setLogger
public UncompiledSassResourceHandler()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class AbstractResourceHandler
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 ProcessingException, IOException
ResourceHandler
setup
in interface ResourceHandler
setup
in class AbstractResourceHandler
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 occursprivate Source _getSource(String location) throws MalformedURLException, IOException
MalformedURLException
IOException
public String getMimeType(Source source, Parameters par)
ResourceHandler
getMimeType
in interface ResourceHandler
getMimeType
in class AbstractResourceHandler
source
- The sourcepar
- The parameterspublic void generateResource(Source source, OutputStream out, Map objectModel, Parameters parameters, Map<String,Object> additionalParameters) throws IOException, ProcessingException
ResourceHandler
source
- The sourceout
- The output stream to write toobjectModel
- The object modelparameters
- The sitemap parametersadditionalParameters
- Additional parametersIOException
- If an error occursProcessingException
- If an error occurs