Package org.ametys.core.minimize.js
Class JSSourceMapResourceHandler
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.resources.SimpleResourceHandler
org.ametys.core.minimize.AbstractSourceMapResourceHandler
org.ametys.core.minimize.js.JSSourceMapResourceHandler
- All Implemented Interfaces:
ResourceHandler
,LogEnabled
,Contextualizable
,Serviceable
public class JSSourceMapResourceHandler
extends AbstractSourceMapResourceHandler
implements Contextualizable
Resource handler for source map files
-
Field Summary
Fields inherited from class org.ametys.core.minimize.AbstractSourceMapResourceHandler
_sourceMapCache
Fields inherited from class org.ametys.core.resources.SimpleResourceHandler
_objectModel, _parameters, _readForDownload, _requestedLocation, _resolver, _source
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Source
_getAlternateSource
(String location, Map objectModel) Find the source at an alternative locationvoid
contextualize
(Context context) void
service
(ServiceManager manager) Methods inherited from class org.ametys.core.minimize.AbstractSourceMapResourceHandler
_getExistingSource, setup
Methods inherited from class org.ametys.core.resources.SimpleResourceHandler
generate, getKey, 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
-
Field Details
-
_jSMinimizeManager
JS minimize manager
-
-
Constructor Details
-
JSSourceMapResourceHandler
public JSSourceMapResourceHandler()
-
-
Method Details
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractSourceMapResourceHandler
- Throws:
ServiceException
-
_getAlternateSource
protected Source _getAlternateSource(String location, Map objectModel) throws ProcessingException, IOException Description copied from class:AbstractSourceMapResourceHandler
Find the source at an alternative location- Specified by:
_getAlternateSource
in classAbstractSourceMapResourceHandler
- Parameters:
location
- The original locationobjectModel
- The object model- Returns:
- The source, or null if not found
- Throws:
ProcessingException
- If an error occurredIOException
- If an error occurred
-