org.jivesoftware.smackx.provider
Class ItemProvider

java.lang.Object
  extended by org.jivesoftware.smackx.provider.ItemProvider
All Implemented Interfaces:
org.jivesoftware.smack.provider.PacketExtensionProvider

public class ItemProvider
extends java.lang.Object
implements org.jivesoftware.smack.provider.PacketExtensionProvider

Parses an item element as is defined in both the PubSubNamespace.BASIC and PubSubNamespace.EVENT namespaces. To parse the item contents, it will use whatever PacketExtensionProvider is registered in smack.providers for its element name and namespace. If no provider is registered, it will return a SimplePayload.

Author:
Robin Collier

Constructor Summary
ItemProvider()
           
 
Method Summary
 org.jivesoftware.smack.packet.PacketExtension parseExtension(org.xmlpull.v1.XmlPullParser parser)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemProvider

public ItemProvider()
Method Detail

parseExtension

public org.jivesoftware.smack.packet.PacketExtension parseExtension(org.xmlpull.v1.XmlPullParser parser)
                                                             throws java.lang.Exception
Specified by:
parseExtension in interface org.jivesoftware.smack.provider.PacketExtensionProvider
Throws:
java.lang.Exception