wt.clients.gui
Class StackTraceUtil
java.lang.Object
wt.clients.gui.StackTraceUtil
- All Implemented Interfaces:
- Externalizable, RemoteAccess, Serializable, TemplateProcessor
- public class StackTraceUtil
- extends Object
- implements RemoteAccess, Serializable, TemplateProcessor
Generates the HTML page containing a stack trace for a given throwable. This class
is used to both generate the URL to an HTML page containing the stack trace
and generate the actual HTML page itself. This class is used by the ExceptionDialog
to generate an HTML page to the stack trace of a throwable.
- See Also:
Supported API:true
Extendable: false
,
Serialized Form
Method Summary |
static void |
buildStackTrace(HTTPRequest request,
HTTPResponse response)
|
Object |
getContextObj()
|
private String |
getMessage()
|
private PrintWriter |
getPrintWriter(OutputStream os,
Locale locale)
|
private String |
getStackTrace()
|
static HTMLTemplate |
getStackTraceTemplate(Vector preferences)
|
static String |
getStackTraceURL(char[] ch_array)
|
static String |
getStackTraceURL(char[] ch_array,
char[] message,
String title)
|
static String |
getStackTraceURL(char[] ch_array,
String title)
|
HTMLTemplate |
getTemplate(Vector preferences)
|
private String |
getTitle()
|
void |
handleRequest(HTTPRequest request,
HTTPResponse response)
The initial method called to initiate template processing, its parameters
give access to the HTML request and response. |
void |
printMessage(Properties parameters,
Locale locale,
OutputStream os)
|
void |
printStackTrace(Properties parameters,
Locale locale,
OutputStream os)
|
void |
printTitle(Properties parameters,
Locale locale,
OutputStream os)
|
void |
readExternal(ObjectInput input)
|
void |
setContextObj(Object obj)
|
private void |
setMessage(String message)
|
private void |
setStackTrace(String trace)
|
private void |
setTitle(String title)
|
void |
writeExternal(ObjectOutput output)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
versionID
private static final String versionID
- See Also:
- Constant Field Values
STACK_TRACE
public static String STACK_TRACE
TITLE
public static String TITLE
EXCEPTION_MESSAGE
public static String EXCEPTION_MESSAGE
SERVER
static final boolean SERVER
FC_RESOURCE
private static final String FC_RESOURCE
- See Also:
- Constant Field Values
CLASSNAME
private static final String CLASSNAME
contextObj
private Object contextObj
stackTrace
private String stackTrace
title
private String title
message
private String message
StackTraceUtil
public StackTraceUtil(String session_id)
getStackTrace
private String getStackTrace()
setStackTrace
private void setStackTrace(String trace)
getTitle
private String getTitle()
setTitle
private void setTitle(String title)
getMessage
private String getMessage()
setMessage
private void setMessage(String message)
getStackTraceURL
public static String getStackTraceURL(char[] ch_array)
throws WTException
- Throws:
WTException
getStackTraceURL
public static String getStackTraceURL(char[] ch_array,
String title)
throws WTException
- Throws:
WTException
getStackTraceURL
public static String getStackTraceURL(char[] ch_array,
char[] message,
String title)
throws WTException
- Throws:
WTException
handleRequest
public void handleRequest(HTTPRequest request,
HTTPResponse response)
throws WTException
- Description copied from interface:
TemplateProcessor
- The initial method called to initiate template processing, its parameters
give access to the HTML request and response.
Supported API: true
- Specified by:
handleRequest
in interface TemplateProcessor
- Parameters:
request
- response
-
- Throws:
WTException
getTemplate
public HTMLTemplate getTemplate(Vector preferences)
throws WTException
- Throws:
WTException
getStackTraceTemplate
public static HTMLTemplate getStackTraceTemplate(Vector preferences)
throws WTException
- Throws:
WTException
getContextObj
public Object getContextObj()
setContextObj
public void setContextObj(Object obj)
buildStackTrace
public static void buildStackTrace(HTTPRequest request,
HTTPResponse response)
throws WTException
- Throws:
WTException
printStackTrace
public void printStackTrace(Properties parameters,
Locale locale,
OutputStream os)
throws WTException
- Throws:
WTException
printTitle
public void printTitle(Properties parameters,
Locale locale,
OutputStream os)
throws WTException
- Throws:
WTException
printMessage
public void printMessage(Properties parameters,
Locale locale,
OutputStream os)
throws WTException
- Throws:
WTException
getPrintWriter
private PrintWriter getPrintWriter(OutputStream os,
Locale locale)
readExternal
public void readExternal(ObjectInput input)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal
in interface Externalizable
- Throws:
IOException
ClassNotFoundException
writeExternal
public void writeExternal(ObjectOutput output)
throws IOException
- Specified by:
writeExternal
in interface Externalizable
- Throws:
IOException