public class ServiceTestResult
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
FAILURE
Constant indicating an unsuccessful test.
|
static int |
INSECURE
Constant indicating an insecure connection.
|
static int |
SUCCESS
Constant indicating a successful test.
|
| Constructor and Description |
|---|
ServiceTestResult(int status)
Constructs with a test status.
|
ServiceTestResult(java.lang.Throwable causeOfFailure)
Assumes the test was unsuccessful and constructs with just the cause of
the failure.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Throwable |
getCauseOfFailure()
Returns the cause of the test failure (if applicable).
|
AttributeValues |
getReturnAttributes() |
int |
getStatus()
Returns the status of the test.
|
void |
setReturnAttributes(AttributeValues rtnAttributes) |
void |
setStatus(int status)
Sets the status of the test
|
boolean |
testSuccess()
Returns the status of the test.
|
public static final int SUCCESS
public static final int FAILURE
public static final int INSECURE
public ServiceTestResult(int status)
status - Status of test. Values may be SUCCESS or FAILURE.public ServiceTestResult(java.lang.Throwable causeOfFailure)
causeOfFailure - object containing the cause of failure.public void setStatus(int status)
status - Status of the test.public int getStatus()
public java.lang.Throwable getCauseOfFailure()
public boolean testSuccess()
public void setReturnAttributes(AttributeValues rtnAttributes)
public AttributeValues getReturnAttributes()