Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.jabber.extensions.caps
Class CapsProvider

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.jabber.extensions.caps.CapsProvider
All Implemented Interfaces:
org.jivesoftware.smack.provider.PacketExtensionProvider

public class CapsProvider
extends Object
implements org.jivesoftware.smack.provider.PacketExtensionProvider

The provider that parses c packet extensions into CapsPacketExtension instances. This work is based on Jonas Adahl's smack fork.

Author:
Emil Ivov

Constructor Summary
CapsProvider()
           
 
Method Summary
 org.jivesoftware.smack.packet.PacketExtension parseExtension(org.xmlpull.v1.XmlPullParser parser)
          Parses and returns an Entity Capabilities.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CapsProvider

public CapsProvider()
Method Detail

parseExtension

public org.jivesoftware.smack.packet.PacketExtension parseExtension(org.xmlpull.v1.XmlPullParser parser)
                                                             throws Exception
Parses and returns an Entity Capabilities.

Specified by:
parseExtension in interface org.jivesoftware.smack.provider.PacketExtensionProvider
Parameters:
parser - the pull parser positioned at the caps element.
Returns:
the newly created CapsPacketExtension.
Throws:
Exception - in case there's anything wrong with the xml.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.