public class Result
extends java.lang.Object
Result
class contains the response sent by the server, i.e. the status (either ok or failed),
an error code and message if failed and the xml response sent by the server.Modifier and Type | Class and Description |
---|---|
static class |
Result.Status |
Modifier and Type | Field and Description |
---|---|
protected int |
errorCode |
protected java.lang.String |
errorMessage |
protected int |
httpErrorCode |
protected org.w3c.dom.Document |
resultDocument |
protected Result.Status |
status |
Modifier | Constructor and Description |
---|---|
protected |
Result() |
|
Result(org.w3c.dom.Document resultDocument) |
|
Result(java.lang.String errorMessage) |
Modifier and Type | Method and Description |
---|---|
DomElement |
getContentElement() |
int |
getErrorCode() |
java.lang.String |
getErrorMessage() |
int |
getHttpErrorCode() |
org.w3c.dom.Document |
getResultDocument() |
Result.Status |
getStatus() |
boolean |
isSuccessful()
Returns if the operation was successful.
|
java.lang.String |
toString() |
protected Result.Status status
protected java.lang.String errorMessage
protected int errorCode
protected int httpErrorCode
protected org.w3c.dom.Document resultDocument
protected Result()
public Result(org.w3c.dom.Document resultDocument)
public Result(java.lang.String errorMessage)
public boolean isSuccessful()
getStatus() == Status.OK
.true
if the operation was successfulpublic int getErrorCode()
public int getHttpErrorCode()
public Result.Status getStatus()
public org.w3c.dom.Document getResultDocument()
public java.lang.String getErrorMessage()
public DomElement getContentElement()
public java.lang.String toString()
toString
in class java.lang.Object