public class XMLRPCMessage extends JabberIQMessage implements JabberCode
sends and receives an XMLRPC message over Jabber's
Current Implementation: JEP-0009 Version 2.0
| Modifier and Type | Field and Description |
|---|---|
static int |
XMLRPC_CALL |
static int |
XMLRPC_RESPONSE |
TYPE_GET, TYPE_RESULT, TYPE_SETTYPE_ERRORmessageIDMSG_CHAT, MSG_INIT, MSG_IQ, MSG_IQ_AGENTS, MSG_IQ_AUTH, MSG_IQ_BROWSE, MSG_IQ_DISCO_INFO, MSG_IQ_DISCO_ITEMS, MSG_IQ_GATEWAY, MSG_IQ_LAST, MSG_IQ_OOB, MSG_IQ_PRIVATE, MSG_IQ_REGISTER, MSG_IQ_ROSTER, MSG_IQ_SEARCH, MSG_IQ_TIME, MSG_IQ_VACATION, MSG_IQ_VCARD, MSG_IQ_VERSION, MSG_IQ_XMLRPC, MSG_PRESENCE, MSG_UNKNOWN, MSG_X_DATA, MSG_X_DELAY, MSG_X_EVENT, MSG_X_EXPIRE, MSG_X_OOB, MSG_X_PGP_ENCRYPTED, MSG_X_PGP_SIGNED, MSG_X_ROSTER, PARSER_CHAT, PARSER_IQ, PARSER_IQ_AGENTS, PARSER_IQ_AUTH, PARSER_IQ_BROWSE, PARSER_IQ_DISCO_INFO, PARSER_IQ_DISCO_ITEMS, PARSER_IQ_GATEWAY, PARSER_IQ_LAST, PARSER_IQ_OOB, PARSER_IQ_PRIVATE, PARSER_IQ_REGISTER, PARSER_IQ_ROSTER, PARSER_IQ_SEARCH, PARSER_IQ_TIME, PARSER_IQ_VACATION, PARSER_IQ_VCARD, PARSER_IQ_VERSION, PARSER_IQ_XMLRPC, PARSER_PRESENCE, PARSER_X_DATA, PARSER_X_DELAY, PARSER_X_EVENT, PARSER_X_EXPIRE, PARSER_X_OOB, PARSER_X_PGP_ENCRYPTED, PARSER_X_PGP_SIGNED, PARSER_X_ROSTER, XMLNS_CHAT, XMLNS_ERROR_STANZA, XMLNS_ERROR_STREAM, XMLNS_IQ, XMLNS_IQ_AGENTS, XMLNS_IQ_AUTH, XMLNS_IQ_BROWSE, XMLNS_IQ_DISCO_INFO, XMLNS_IQ_DISCO_ITEMS, XMLNS_IQ_GATEWAY, XMLNS_IQ_LAST, XMLNS_IQ_OOB, XMLNS_IQ_PRIVATE, XMLNS_IQ_REGISTER, XMLNS_IQ_ROSTER, XMLNS_IQ_SEARCH, XMLNS_IQ_TIME, XMLNS_IQ_VACATION, XMLNS_IQ_VCARD, XMLNS_IQ_VERSION, XMLNS_IQ_XMLRPC, XMLNS_PRESENCE, XMLNS_STREAM, XMLNS_X_DATA, XMLNS_X_DELAY, XMLNS_X_EVENT, XMLNS_X_EXPIRE, XMLNS_X_OOB, XMLNS_X_PGP_ENCRYPTED, XMLNS_X_PGP_SIGNED, XMLNS_X_ROSTER| Constructor and Description |
|---|
XMLRPCMessage()
constructs a default XMLRPC message.
|
XMLRPCMessage(Call call) |
XMLRPCMessage(Response response) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
encode()
the method is overridden to provide some sanity checks before sending
the data out.
|
Call |
getCall()
retrieves the call object if there is one for this message.
|
ErrorMessage |
getErrorMessage()
this will retrieve the error if this message is an error message.
|
int |
getMessageType()
the default message type is unknown.
|
Response |
getResponse()
retrieves the response object if there is one for this message.
|
int |
getXMLRPCType()
get the type for this XMLRPC message, whether it is a request or response type.
|
boolean |
isCall()
convenience methods to check if the messag is a call/request
|
boolean |
isError()
checks to see if the message is an error message.
|
boolean |
isResponse()
convenience methods to check if the messag is a response
|
JabberMessage |
parse(JabberMessageParser parser,
Element msgTree)
parses the message.
|
void |
setCall(Call call)
sets the call request for this message to be sent.
|
void |
setFactory(SerializerFactory factory)
Sets a custom serializer factory instead of using the default one.
|
void |
setResponse(Response response)
sets the response for this message to be sent.
|
getFrom, getTo, getType, setErrorMessage, setFrom, setTo, setTypegetDOM, getXMLOutputter, setMessageID, toStringgetMessageID, getReplyMessage, getTimeout, getXMessage, getXMessages, interrupt, isReplyRequired, isSendXMessages, isSynchronized, replyReceived, setReplyRequired, setSendXMessages, setSynchronized, setTimeout, setXMessage, setXMessagespublic static final int XMLRPC_CALL
public static final int XMLRPC_RESPONSE
public XMLRPCMessage()
SerializerFactorypublic XMLRPCMessage(Response response)
public XMLRPCMessage(Call call)
public void setFactory(SerializerFactory factory)
public JabberMessage parse(JabberMessageParser parser, Element msgTree) throws ParseException
parse in interface JabberMessageParsableparse in class AbstractJabberMessageParseExceptionpublic java.lang.String encode()
throws ParseException
encode in class JabberJDOMMessageParseException - if something went wrong during encodingpublic boolean isError()
isError in class AbstractJabberMessagepublic boolean isResponse()
public boolean isCall()
public Response getResponse()
public Call getCall()
public void setResponse(Response response)
public void setCall(Call call)
public int getXMLRPCType()
public ErrorMessage getErrorMessage()
getErrorMessage in class AbstractJabberMessagepublic int getMessageType()
JabberJDOMMessagegetMessageType in class JabberIQMessageJabberCodeCopyright © 2001-2005 Echomine. All Rights Reserved.