Class UnminimizeHelper
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.plugins.core.ui.minimize.UnminimizeHelper
-
- All Implemented Interfaces:
LogEnabled
,Component
,Contextualizable
,Serviceable
public class UnminimizeHelper extends AbstractLogEnabled implements Component, Serviceable, Contextualizable
Manager for minimized source map
-
-
Field Summary
Fields Modifier and Type Field Description private static String
__MINIMIZED_RESOURCES_PREFIX
protected Context
_context
Avalon contextprotected SourceResolver
_resolver
SourceResolverprotected SourceMapCache
_sourceMapCache
The SourceMap cache
-
Constructor Summary
Constructors Constructor Description UnminimizeHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private String
_getSourceMap(String filename, Map<String,String> resolvedCache, String workspaceURI)
private void
_setMappingData(Map<String,String> data, String sourceMapContent)
void
contextualize(Context context)
void
service(ServiceManager manager)
List<Map<String,String>>
unminifyStackTrace(List<Map<String,String>> stacktraceData)
Undo the mapping of the stacktrace by providing the original filename, line and column-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
__MINIMIZED_RESOURCES_PREFIX
private static final String __MINIMIZED_RESOURCES_PREFIX
- See Also:
- Constant Field Values
-
_sourceMapCache
protected SourceMapCache _sourceMapCache
The SourceMap cache
-
_resolver
protected SourceResolver _resolver
SourceResolver
-
-
Constructor Detail
-
UnminimizeHelper
public UnminimizeHelper()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
unminifyStackTrace
public List<Map<String,String>> unminifyStackTrace(List<Map<String,String>> stacktraceData) throws SourceNotFoundException, IOException, com.google.debugging.sourcemap.SourceMapParseException
Undo the mapping of the stacktrace by providing the original filename, line and column- Parameters:
stacktraceData
- The list of stacktrace data, containing the filename, line and column of the minimized file- Returns:
- The list of data, complemented with the original file data when found
- Throws:
SourceNotFoundException
- If an error occurredIOException
- If an error occurredcom.google.debugging.sourcemap.SourceMapParseException
- If an error occurred
-
_getSourceMap
private String _getSourceMap(String filename, Map<String,String> resolvedCache, String workspaceURI) throws MalformedURLException, IOException, SourceNotFoundException
-
_setMappingData
private void _setMappingData(Map<String,String> data, String sourceMapContent) throws com.google.debugging.sourcemap.SourceMapParseException
- Throws:
com.google.debugging.sourcemap.SourceMapParseException
-
-