public class VueJsResourceHandler extends AbstractCompiledResourceHandler
Modifier and Type | Class and Description |
---|---|
(package private) static class |
VueJsResourceHandler.LocationParser |
(package private) class |
VueJsResourceHandler.ReadStream |
_cocoonContext, _context, _resolver, _supportedSuffixes
MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
VueJsResourceHandler() |
Modifier and Type | Method and Description |
---|---|
private void |
_compile(VueJsResourceHandler.LocationParser lp,
Source binarySource) |
private String[] |
_getCmdExec() |
private long |
_getLastModified(Source inputSource) |
private Source |
_handleSouresFiles(VueJsResourceHandler.LocationParser lp) |
private void |
_installDependencies(VueJsResourceHandler.LocationParser lp) |
protected boolean |
_isBasicallySupported(String source)
Is the source supported upon its uri
|
private boolean |
_isSourceDirectory(Source inputSource) |
void |
generateResource(Source source,
OutputStream out,
Map objectModel,
Parameters parameters,
Map<String,Object> additionalParameters)
Generate the resource configured during setup, and output it
|
protected List<String> |
getDependenciesList(Source inputSource)
Calculate the list of dependencies for the given source, for validity calculations.
|
long |
getLastModified(Source source,
Parameters parameters)
Get the resource last modified time
|
int |
getPriority()
Get the priority of this handler
|
protected Source |
getSourceToCompile(String rawLocation,
Map<String,Object> additionalParameters)
Get the compiled source uri
|
getKey, getValidity, isSupported, setup
configure, contextualize, getMimeType, getSize, service
getLogger, setLogger
public VueJsResourceHandler()
protected boolean _isBasicallySupported(String source)
AbstractCompiledResourceHandler
_isBasicallySupported
in class AbstractCompiledResourceHandler
source
- The location to analysepublic int getPriority()
ResourceHandler
getPriority
in interface ResourceHandler
getPriority
in class AbstractResourceHandler
public 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 occurspublic long getLastModified(Source source, Parameters parameters)
ResourceHandler
getLastModified
in interface ResourceHandler
getLastModified
in class AbstractResourceHandler
source
- The sourceparameters
- The parametersprivate long _getLastModified(Source inputSource)
protected List<String> getDependenciesList(Source inputSource)
AbstractCompiledResourceHandler
getDependenciesList
in class AbstractCompiledResourceHandler
inputSource
- The sourceprivate boolean _isSourceDirectory(Source inputSource)
protected Source getSourceToCompile(String rawLocation, Map<String,Object> additionalParameters) throws MalformedURLException, IOException
AbstractCompiledResourceHandler
getSourceToCompile
in class AbstractCompiledResourceHandler
rawLocation
- The requested locationadditionalParameters
- Additional parameters to fill, that will be transmitted to the generate methodMalformedURLException
- if location is malformed.IOException
- If an IO error occursprivate Source _handleSouresFiles(VueJsResourceHandler.LocationParser lp) throws MalformedURLException, IOException
MalformedURLException
IOException
private void _compile(VueJsResourceHandler.LocationParser lp, Source binarySource) throws IOException, ProcessingException
IOException
ProcessingException
private void _installDependencies(VueJsResourceHandler.LocationParser lp) throws IOException, ProcessingException
IOException
ProcessingException
private String[] _getCmdExec()