Modifier and Type | Class and Description |
---|---|
private static class |
Modifier and Type | Field and Description |
---|---|
private static String | |
private String | |
private boolean | |
private boolean | |
private static final String | |
private static boolean | |
private static final String | |
private static boolean |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
private void | |
private String | Returns: extra info if debug option enabled.If thread debug option enabled, include information containing hex value of threadId and the current thread name If timestamp debug option enabled, include timestamp string |
private static String | |
public static Debug | getInstance(String option)
Get a Debug object corresponding to whether or not the given option is set. |
public static Debug | getInstance(String option, String prefix)
Get a Debug object corresponding to whether or not the given option is set. |
public PrintStream | |
public static void | |
public static boolean | |
public static boolean | |
private static String | |
public static Debug | |
public void | |
public void | |
public void | |
public void | |
public static String | toHexString(BigInteger b)
return a hexadecimal printed representation of the specified BigInteger object. |
public static String | |
public static String |
args | back to summary |
---|---|
private static String args |
prefix | back to summary |
---|---|
private String prefix |
printDateTime | back to summary |
---|---|
private boolean printDateTime |
printThreadDetails | back to summary |
---|---|
private boolean printThreadDetails |
THREAD_OPTION | back to summary |
---|---|
private static final String THREAD_OPTION |
threadInfoAll | back to summary |
---|---|
private static boolean threadInfoAll |
TIMESTAMP_OPTION | back to summary |
---|---|
private static final String TIMESTAMP_OPTION |
timeStampInfoAll | back to summary |
---|---|
private static boolean timeStampInfoAll |
Debug | back to summary |
---|---|
public Debug() |
configureExtras | back to summary |
---|---|
private void configureExtras(String option) |
extraInfo | back to summary |
---|---|
private String extraInfo() If thread debug option enabled, include information containing hex value of threadId and the current thread name If timestamp debug option enabled, include timestamp string
|
formatCaller | back to summary |
---|---|
private static String formatCaller() |
getInstance | back to summary |
---|---|
public static Debug getInstance(String option) Get a Debug object corresponding to whether or not the given option is set. Set the prefix to be the same as option. |
getInstance | back to summary |
---|---|
public static Debug getInstance(String option, String prefix) Get a Debug object corresponding to whether or not the given option is set. Set the prefix to prefix. |
getPrintStream | back to summary |
---|---|
public PrintStream getPrintStream() PrintStream for debug methods. Currently, only System.err is supported. |
Help | back to summary |
---|---|
public static void Help() |
isOn | back to summary |
---|---|
public static boolean isOn(String option) True if the system property "security.debug" contains the string "option". |
isVerbose | back to summary |
---|---|
public static boolean isVerbose() Check if verbose messages is enabled for extra debugging. |
marshal | back to summary |
---|---|
private static String marshal(String args) change a string into lower case except permission classes and URLs. |
of | back to summary |
---|---|
public static Debug of(String prefix, String property) Get a Debug object corresponding to the given option on the given property value. Note unlike other Usually, this method is used by other individual area-specific debug settings. For example, Map<String, String> settings = loadLoginSettings(); String property = settings.get("login"); Debug debug = Debug.of("login", property); |
println | back to summary |
---|---|
public void println(String message) print a message to stderr that is prefixed with the prefix created from the call to getInstance. |
println | back to summary |
---|---|
public void println(Object obj, String message) print a message to stderr that is prefixed with the prefix created from the call to getInstance and obj. |
println | back to summary |
---|---|
public void println() print a blank line to stderr that is prefixed with the prefix. |
println | back to summary |
---|---|
public void println(String prefix, String message) print a message to stderr that is prefixed with the prefix. |
toHexString | back to summary |
---|---|
public static String toHexString(BigInteger b) return a hexadecimal printed representation of the specified BigInteger object. the value is formatted to fit on lines of at least 75 characters, with embedded newlines. Words are separated for readability, with eight words (32 bytes) per line. |
toString | back to summary |
---|---|
public static String toString(byte[] b) |
toString | back to summary |
---|---|
public static String toString(BigInteger b) |
Modifier and Type | Field and Description |
---|---|
private static final DateTimeFormatter | |
private static final String |
Access | Constructor and Description |
---|---|
private |
DATE_TIME_FORMATTER | back to summary |
---|---|
private static final DateTimeFormatter DATE_TIME_FORMATTER |
PATTERN | back to summary |
---|---|
private static final String PATTERN |
FormatHolder | back to summary |
---|---|
private FormatHolder() |