org.jivesoftware.smackx.provider
Class DelayInfoProvider
java.lang.Object
org.jivesoftware.smackx.provider.DelayInformationProvider
org.jivesoftware.smackx.provider.DelayInfoProvider
- All Implemented Interfaces:
- PacketExtensionProvider
public class DelayInfoProvider
- extends DelayInformationProvider
This provider simply creates a DelayInfo
decorator for the DelayInformation
that
is returned by the superclass. This allows the new code using
Delay Information XEP-0203 to be
backward compatible with XEP-0091.
This provider must be registered in the smack.properties file for the element
delay with namespace urn:xmpp:delay
- Author:
- Robin Collier
Method Summary |
PacketExtension |
parseExtension(org.xmlpull.v1.XmlPullParser parser)
Parse an extension sub-packet and create a PacketExtension instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelayInfoProvider
public DelayInfoProvider()
parseExtension
public PacketExtension parseExtension(org.xmlpull.v1.XmlPullParser parser)
throws Exception
- Description copied from interface:
PacketExtensionProvider
- Parse an extension sub-packet and create a PacketExtension instance. At
the beginning of the method call, the xml parser will be positioned on the
opening element of the packet extension. At the end of the method call, the
parser must be positioned on the closing element of the packet extension.
- Specified by:
parseExtension
in interface PacketExtensionProvider
- Overrides:
parseExtension
in class DelayInformationProvider
- Parameters:
parser
- an XML parser.
- Returns:
- a new IQ instance.
- Throws:
Exception
- if an error occurs parsing the XML.
Copyright © 2003-2007 Jive Software.