Class StackTraceEncoder
java.lang.Object
org.gcube.common.gxrest.response.entity.StackTraceEncoder
Encoder for
StackTraceElement.- Author:
- Manuele Simi (ISTI-CNR), Luca Frosini (ISTI-CNR)
-
Method Summary
Modifier and TypeMethodDescriptionstatic StackTraceElementdecodeElement(String encoded) Decodes the string as stacktrace element.static StackTraceElement[]decodeTrace(String joinedTrace) Decodes the string as stacktrace.static StringencodeElement(StackTraceElement element) Encodes the stacktrace element as string.static StringencodeTrace(StackTraceElement[] elements, int lines) Encodes the stacktrace as string.
-
Method Details
-
encodeElement
Encodes the stacktrace element as string.- Parameters:
element- the element to encode- Returns:
- the encoded element
-
decodeElement
Decodes the string as stacktrace element.- Parameters:
encoded- the encoded element- Returns:
- the decoded element
-
encodeTrace
Encodes the stacktrace as string.- Parameters:
elements- the elements to encodelines- the number of lines to encode- Returns:
- the encoded trace
-
decodeTrace
Decodes the string as stacktrace.- Parameters:
joinedTrace- the encoded trace- Returns:
- the decoded trace
-