public class WebTestResultParser
extends java.lang.Object
WebTestResult
object.WebTestResult
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
exceptionClassname
Parsed exception class name
|
protected java.lang.String |
exceptionMessage
Parsed exception message
|
protected java.lang.String |
exceptionStacktrace
Parsed exception stack trace
|
Constructor and Description |
---|
WebTestResultParser() |
Modifier and Type | Method and Description |
---|---|
WebTestResult |
parse(java.lang.String theData)
Parse a string and transform it into a
WebTestResult object. |
protected java.lang.String |
readExceptionClassname(java.lang.String theData)
Read the
WebTestResult.XML_EXCEPTION_CLASSNAME_ATTRIBUTE portion
and extract the exception classname. |
protected java.lang.String |
readExceptionMessage(java.lang.String theData)
Read the
WebTestResult.XML_EXCEPTION_MESSAGE_ELEMENT portion
and extract the exception message. |
protected java.lang.String |
readExceptionStacktrace(java.lang.String theData)
Read the
WebTestResult.XML_EXCEPTION_STACKTRACE_ELEMENT portion
and extract the exception stacktrace. |
protected java.lang.String |
readRootElement(java.lang.String theData)
Read the
WebTestResult.XML_ROOT_ELEMENT portion. |
protected java.lang.String exceptionClassname
protected java.lang.String exceptionMessage
protected java.lang.String exceptionStacktrace
public WebTestResult parse(java.lang.String theData) throws ParsingException
WebTestResult
object.theData
- the string to parseWebTestResult
object corresponding to the data
stringParsingException
- if an error happens during parsingprotected java.lang.String readRootElement(java.lang.String theData) throws ParsingException
WebTestResult.XML_ROOT_ELEMENT
portion.theData
- the string buffer to parseParsingException
- if an error happens during parsingprotected java.lang.String readExceptionClassname(java.lang.String theData) throws ParsingException
WebTestResult.XML_EXCEPTION_CLASSNAME_ATTRIBUTE
portion
and extract the exception classname.theData
- the string buffer to parseParsingException
- if an error happens during parsingprotected java.lang.String readExceptionMessage(java.lang.String theData) throws ParsingException
WebTestResult.XML_EXCEPTION_MESSAGE_ELEMENT
portion
and extract the exception message.theData
- the string buffer to parseParsingException
- if an error happens during parsingprotected java.lang.String readExceptionStacktrace(java.lang.String theData) throws ParsingException
WebTestResult.XML_EXCEPTION_STACKTRACE_ELEMENT
portion
and extract the exception stacktrace.theData
- the string buffer to parseParsingException
- if an error happens during parsingCopyright © 2000-2004 Apache Software Foundation. All Rights Reserved.