net.java.sip.communicator.impl.protocol.jabber.extensions.mailnotification
Class MailboxIQProvider
java.lang.Object
net.java.sip.communicator.impl.protocol.jabber.extensions.mailnotification.MailboxIQProvider
- All Implemented Interfaces:
- org.jivesoftware.smack.provider.IQProvider
public class MailboxIQProvider
- extends Object
- implements org.jivesoftware.smack.provider.IQProvider
A straightforward implementation of the IQProvider. Parses custom IQ packets.
We receive IQ mailbox packets from google mail servers and we use them to
create Mailbox objects which contain all the information from the
packet.
- Author:
- Matthieu Helleringer, Alain Knaebel
|
Method Summary |
org.jivesoftware.smack.packet.IQ |
parseIQ(org.xmlpull.v1.XmlPullParser parser)
Return an IQ (i.e. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MailboxIQProvider
public MailboxIQProvider()
parseIQ
public org.jivesoftware.smack.packet.IQ parseIQ(org.xmlpull.v1.XmlPullParser parser)
throws Exception
- Return an IQ (i.e. Mailbox) object which will contain
the information we get from the parser.
- Specified by:
parseIQ in interface org.jivesoftware.smack.provider.IQProvider
- Parameters:
parser - the XmlPullParser that we can use to get
packet details.
- Returns:
- a new IQ instance which is the result of the XmlPullParser.
- Throws:
Exception - if an error occurs parsing the XML.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.