public class AgentsIQMessage extends JabberIQMessage
This message encapsulates the retrieval of agents supported by the server. As the implementation provides readonly information to the agents hosted by the server, this class provides readonly methods for retrieving the list of agents.
The jabber:iq:agents is the old style of retrieving information and will soon be superseded by the new browsing framework. In fact, some jabber servers already support the new browsing framework for agent listing (ie. jabber.org). However, some others do not (specifically jabber.com). Thus, for compatibility, the jabber:iq:agents namespace is supported.
Current Implementation: JEP-0094 Version 0.1
ServiceInfoIQMessage,
ServiceItemsIQMessageTYPE_GET, TYPE_RESULT, TYPE_SETTYPE_ERRORmessageID| Constructor and Description |
|---|
AgentsIQMessage()
Deprecated.
defaults to iq type get for retrieval or for parsing incoming messages
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List |
getAgentList()
Deprecated.
retrieve the list of agents.
|
int |
getMessageType()
Deprecated.
the default message type is unknown.
|
JabberMessage |
parse(JabberMessageParser parser,
Element msgTree)
Deprecated.
parses the incoming message for the data
|
getErrorMessage, getFrom, getTo, getType, isError, setErrorMessage, setFrom, setTo, setTypeencode, getDOM, getXMLOutputter, setMessageID, toStringgetMessageID, getReplyMessage, getTimeout, getXMessage, getXMessages, interrupt, isReplyRequired, isSendXMessages, isSynchronized, replyReceived, setReplyRequired, setSendXMessages, setSynchronized, setTimeout, setXMessage, setXMessagespublic AgentsIQMessage()
public java.util.List getAgentList()
public JabberMessage parse(JabberMessageParser parser, Element msgTree) throws ParseException
parse in interface JabberMessageParsableparse in class AbstractJabberMessageParseExceptionpublic int getMessageType()
JabberJDOMMessagegetMessageType in class JabberIQMessageJabberCodeCopyright © 2001-2005 Echomine. All Rights Reserved.