|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.echomine.xmlrpc.Response
public class Response
This is the object that will construct a response object.. It can used to parse an incoming response request or construct an response. The response is namespace aware, but by default, no namespace is associated with it unless you specifically set the namespace.
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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)
Method Detail |
---|
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.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |