public class Response
extends java.lang.Object
| Constructor and Description |
|---|
Response(Element elem,
SerializerFactory factory)
constructs a response from a dom element.
|
Response(int faultCode,
java.lang.String faultString,
SerializerFactory factory)
constructs an error response with the provided fault code and error string
|
Response(java.lang.Object response,
SerializerFactory factory)
constructs a response with the proper return data
|
Response(SerializerFactory factory)
an empty constructor that is useful when you want to set the data with object information
|
| Modifier and Type | Method and Description |
|---|---|
Element |
getDOM() |
int |
getFaultCode() |
java.lang.String |
getFaultString() |
Namespace |
getNamespace() |
java.lang.Object |
getResponse()
retrieves the response data if the message is not an error.
|
boolean |
isFault()
check if the response is a fault/error response
|
void |
parse(Element elem)
parses a response from the element.
|
void |
setErrorResponse(int faultCode,
java.lang.String faultString)
sets the error response.
|
void |
setNamespace(Namespace ns) |
void |
setResponse(java.lang.Object respData)
sets the response to the indicated value.
|
java.lang.String |
toString() |
public Response(SerializerFactory factory)
public Response(java.lang.Object response,
SerializerFactory factory)
public Response(int faultCode,
java.lang.String faultString,
SerializerFactory factory)
public Response(Element elem,
SerializerFactory factory)
public void parse(Element elem)
public void setNamespace(Namespace ns)
public Namespace getNamespace()
public boolean isFault()
public int getFaultCode()
public java.lang.String getFaultString()
public java.lang.Object getResponse()
public void setResponse(java.lang.Object respData)
public void setErrorResponse(int faultCode,
java.lang.String faultString)
public Element getDOM()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2001-2005 Echomine. All Rights Reserved.