Class JSPUtils
- java.lang.Object
-
- com.intergral.deep.agent.tracepoint.inst.jsp.JSPUtils
-
public class JSPUtils extends Object
Utilities for JSP classes.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SourceMap
getSourceMap(byte[] classfileBuffer)
Load the source map for this class file.static SourceMap
getSourceMap(Class<?> clazz)
Load a source map for the given class.static boolean
isJspClass(String jspSuffix, List<String> jspPackages, String loadedClassName)
Is this class a jsp class.static Set<TracePointConfig>
loadJSPTracepoints(SourceMap sourceMap, Map<String,TracePointConfig> jsp)
Load jsp tracepoints using source map.static Set<TracePointConfig>
loadJSPTracepoints(Class<?> loadedClass, Map<String,TracePointConfig> jsp)
Load the tracepoints for this class.
-
-
-
Method Detail
-
isJspClass
public static boolean isJspClass(String jspSuffix, List<String> jspPackages, String loadedClassName)
Is this class a jsp class.- Parameters:
jspSuffix
- the jsp suffixjspPackages
- the jsp packagesloadedClassName
- the clas name to check- Returns:
true
if this is a jsp class
-
getSourceMap
public static SourceMap getSourceMap(Class<?> clazz)
Load a source map for the given class.- Parameters:
clazz
- the class- Returns:
- the source map or
null
-
getSourceMap
public static SourceMap getSourceMap(byte[] classfileBuffer)
Load the source map for this class file.- Parameters:
classfileBuffer
- the class file as bytes- Returns:
- the loaded source map, or
null
-
loadJSPTracepoints
public static Set<TracePointConfig> loadJSPTracepoints(Class<?> loadedClass, Map<String,TracePointConfig> jsp)
Load the tracepoints for this class.- Parameters:
loadedClass
- the class to checkjsp
- the tracepoints- Returns:
- the matches tracepoints
-
loadJSPTracepoints
public static Set<TracePointConfig> loadJSPTracepoints(SourceMap sourceMap, Map<String,TracePointConfig> jsp)
Load jsp tracepoints using source map.- Parameters:
sourceMap
- the source mapjsp
- the tracepoints- Returns:
- the matches tracepoints
-
-