Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.jabber.extensions.gtalk
Class SessionIQProvider

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.jabber.extensions.gtalk.SessionIQProvider
All Implemented Interfaces:
org.jivesoftware.smack.provider.IQProvider

public class SessionIQProvider
extends Object
implements org.jivesoftware.smack.provider.IQProvider

An implementation of a GTalk session IQ provider that parses incoming session IQs.

Author:
Sebastien Vincent

Field Summary
static String GTALK_AUDIO_NAMESPACE
          Namespace for "audio" description.
static String GTALK_VIDEO_NAMESPACE
          Namespace for "video" description.
 
Constructor Summary
SessionIQProvider()
          Creates a new instance of the SessionIQProvider and register all GTalk related extension providers.
 
Method Summary
 org.jivesoftware.smack.packet.IQ parseIQ(org.xmlpull.v1.XmlPullParser parser)
          Parses a GTalk session IQ sub-document and returns a SessionIQ instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GTALK_AUDIO_NAMESPACE

public static final String GTALK_AUDIO_NAMESPACE
Namespace for "audio" description.

See Also:
Constant Field Values

GTALK_VIDEO_NAMESPACE

public static final String GTALK_VIDEO_NAMESPACE
Namespace for "video" description.

See Also:
Constant Field Values
Constructor Detail

SessionIQProvider

public SessionIQProvider()
Creates a new instance of the SessionIQProvider and register all GTalk related extension providers. It is the responsibility of the application to register the SessionIQProvider itself.

Method Detail

parseIQ

public org.jivesoftware.smack.packet.IQ parseIQ(org.xmlpull.v1.XmlPullParser parser)
                                         throws Exception
Parses a GTalk session IQ sub-document and returns a SessionIQ instance.

Specified by:
parseIQ in interface org.jivesoftware.smack.provider.IQProvider
Parameters:
parser - an XML parser.
Returns:
a new SessionIQ instance.
Throws:
Exception - if an error occurs parsing the XML.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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