com.retrogui.messageserver.common
Class SysUtils

java.lang.Object
  extended bycom.retrogui.messageserver.common.SysUtils

public class SysUtils
extends java.lang.Object

misc system oriented utility methods


Field Summary
static java.lang.String EOL
           
static int ST_MODE_HTML
           
static int ST_MODE_ONE_LINE_ONLY
           
static int ST_MODE_PLAIN
           
 
Constructor Summary
SysUtils()
           
 
Method Summary
static java.lang.String getExceptionStackTrace(java.lang.Exception e)
          Overloaded version of getExceptionStackTrace(Exception e, int iMode)
static java.lang.String getExceptionStackTrace(java.lang.Exception e, int iMode)
          Convert exception stack trace into a string ST_MODE_PLAIN for raw, unprocessed string ST_MODE_ONE_LINE_ONLY to strip EOL for writing to a log ST_MODE_HTML for display to browser
static java.lang.String getExceptionStackTrace(java.lang.Throwable t, int iMode)
          Convert throwable stack trace into a string ST_MODE_PLAIN for raw, unprocessed string ST_MODE_ONE_LINE_ONLY to strip EOL for writing to a log ST_MODE_HTML for display to browser
static java.lang.String searchReplace(java.lang.String strIncoming, java.lang.String strFind, java.lang.String strReplace)
          Search and replace string patterns in a string.
static java.lang.String showThreadList()
          Display list of all threads for diagnostics
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EOL

public static final java.lang.String EOL

ST_MODE_PLAIN

public static final int ST_MODE_PLAIN
See Also:
Constant Field Values

ST_MODE_ONE_LINE_ONLY

public static final int ST_MODE_ONE_LINE_ONLY
See Also:
Constant Field Values

ST_MODE_HTML

public static final int ST_MODE_HTML
See Also:
Constant Field Values
Constructor Detail

SysUtils

public SysUtils()
Method Detail

searchReplace

public static java.lang.String searchReplace(java.lang.String strIncoming,
                                             java.lang.String strFind,
                                             java.lang.String strReplace)
Search and replace string patterns in a string.

Parameters:
strIncoming - a value of payloadType 'String'
strFind - a value of payloadType 'String'
strReplace - a value of payloadType 'String'
Returns:
a value of payloadType 'String'

getExceptionStackTrace

public static java.lang.String getExceptionStackTrace(java.lang.Exception e)
Overloaded version of getExceptionStackTrace(Exception e, int iMode)

Parameters:
e - a value of payloadType 'Exception'
Returns:
a value of payloadType 'String'

getExceptionStackTrace

public static java.lang.String getExceptionStackTrace(java.lang.Exception e,
                                                      int iMode)
Convert exception stack trace into a string ST_MODE_PLAIN for raw, unprocessed string ST_MODE_ONE_LINE_ONLY to strip EOL for writing to a log ST_MODE_HTML for display to browser

Parameters:
e - a value of payloadType 'Exception'
iMode - a value of payloadType 'int'
Returns:
a value of payloadType 'String'

getExceptionStackTrace

public static java.lang.String getExceptionStackTrace(java.lang.Throwable t,
                                                      int iMode)
Convert throwable stack trace into a string ST_MODE_PLAIN for raw, unprocessed string ST_MODE_ONE_LINE_ONLY to strip EOL for writing to a log ST_MODE_HTML for display to browser

Parameters:
t - a value of payloadType 'throwable'
iMode - a value of payloadType 'int'
Returns:
a value of payloadType 'String'

showThreadList

public static java.lang.String showThreadList()
Display list of all threads for diagnostics

Returns:
-