Smack

org.jivesoftware.smackx.packet
Class AttentionExtension.Provider

java.lang.Object
  extended by org.jivesoftware.smackx.packet.AttentionExtension.Provider
All Implemented Interfaces:
PacketExtensionProvider
Enclosing class:
AttentionExtension

public static class AttentionExtension.Provider
extends java.lang.Object
implements PacketExtensionProvider

A PacketExtensionProvider for the AttentionExtension. As Attention elements have no state/information other than the element name and namespace, this implementation simply returns new instances of AttentionExtension.

Author:
Guus der Kinderen, guus.der.kinderen@gmail.com s

Constructor Summary
AttentionExtension.Provider()
           
 
Method Summary
 PacketExtension parseExtension(org.xmlpull.v1.XmlPullParser arg0)
          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
 

Constructor Detail

AttentionExtension.Provider

public AttentionExtension.Provider()
Method Detail

parseExtension

public PacketExtension parseExtension(org.xmlpull.v1.XmlPullParser arg0)
                               throws java.lang.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
Parameters:
arg0 - an XML parser.
Returns:
a new IQ instance.
Throws:
java.lang.Exception - if an error occurs parsing the XML.

Smack

Copyright © 2003-2007 Jive Software.