Package org.keycloak.common.util
Class StackUtil
- java.lang.Object
- 
- org.keycloak.common.util.StackUtil
 
- 
 public class StackUtil extends Object - Author:
- hmlnarik
 
- 
- 
Constructor SummaryConstructors Constructor Description StackUtil()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static ObjectgetShortStackTrace()Returns string representation of the stack trace of the current call without the call to thegetShortStackTraceitself, and ignoring usually irrelevant calls to methods insun.andjava.lang.reflectpackages.static ObjectgetShortStackTrace(String prefix)Returns string representation of the stack trace of the current call without the call to thegetShortStackTraceitself, and ignoring usually irrelevant calls to methods insun.andjava.lang.reflectpackages.static booleanisShortStackTraceEnabled()
 
- 
- 
- 
Method Detail- 
getShortStackTracepublic static Object getShortStackTrace() Returns string representation of the stack trace of the current call without the call to thegetShortStackTraceitself, and ignoring usually irrelevant calls to methods insun.andjava.lang.reflectpackages. The stack trace ignores calls before and including the firstorg.jboss.resteasymethod, hence it usually finishes with the method handling respective REST endpoint. Each line of the stack trace is prepended with"\n ".- Returns:
- If the logger org.keycloak.STACK_TRACEis set to trace level, then returns stack trace, else returns emptyStringBuilder
 
 - 
getShortStackTracepublic static Object getShortStackTrace(String prefix) Returns string representation of the stack trace of the current call without the call to thegetShortStackTraceitself, and ignoring usually irrelevant calls to methods insun.andjava.lang.reflectpackages. The stack trace ignores calls before and including the firstorg.jboss.resteasymethod, hence it usually finishes with the method handling respective REST endpoint.- Parameters:
- prefix- Prefix to prepend to every stack trace line
- Returns:
- If the logger org.keycloak.STACK_TRACEis set to trace level, then returns stack trace, else returns emptyStringBuilder
 
 - 
isShortStackTraceEnabledpublic static boolean isShortStackTraceEnabled() 
 
- 
 
-