com.echomine.jabber
Interface JabberMessageParsable
- All Known Implementing Classes:
- AbstractJabberMessage, AgentsIQMessage, AuthIQMessage, BrowseIQMessage, DataXMessage, DelayXMessage, EventXMessage, ExpireXMessage, GatewayIQMessage, JabberChatMessage, JabberIQMessage, JabberIQMessageParser, JabberJDOMMessage, JabberPresenceMessage, JabberVCardMessage, LastIQMessage, OOBIQMessage, OOBXMessage, PGPEncryptedXMessage, PGPSignedXMessage, PrivateXmlIQMessage, RegisterIQMessage, RosterIQMessage, RosterXMessage, SearchIQMessage, ServiceInfoIQMessage, ServiceItemsIQMessage, TimeIQMessage, VacationIQMessage, VersionIQMessage, XMLRPCMessage
public interface JabberMessageParsable
All messages that is used to parse incoming messages must implement this method. Since the parse relies on the JDOM, you
will need to use JDOM even if your message does not extend JabberJDOMMessage, or you will need
to implement your own Message Parser.
parse
JabberMessage parse(JabberMessageParser parser,
Element msgTree)
throws ParseException
- parse element/incoming message into a message object. Note that the parsing is unique in that
during normal behavior, you will return "this" at the end of the method. However, for those
message that require "morphing" into another message type (ie. IQ Messages), the method can
return a new instance of another JabberMessage to replace the current one.
- Throws:
ParseException
Copyright © 2001-2005 Echomine. All Rights Reserved.