Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.jabber.extensions.geolocation
Class GeolocationPacketExtensionProvider

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

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

This class parses incoming messages and extracts the geolocation parameters from the raw XML messages.

Author:
Guillaume Schreiner

Field Summary
static String ELEMENT_NAME
          The name of the XML element used for transport of geolocation parameters.
static String NAMESPACE
          The names XMPP space that the geolocation elements belong to.
 
Constructor Summary
GeolocationPacketExtensionProvider()
          Creates a new GeolocationPacketExtensionProvider.
 
Method Summary
 org.jivesoftware.smack.packet.PacketExtension parseExtension(org.xmlpull.v1.XmlPullParser parser)
          Parses a GeolocationPacketExtension packet (extension sub-packet).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ELEMENT_NAME

public static final String ELEMENT_NAME
The name of the XML element used for transport of geolocation parameters.

See Also:
Constant Field Values

NAMESPACE

public static final String NAMESPACE
The names XMPP space that the geolocation elements belong to.

See Also:
Constant Field Values
Constructor Detail

GeolocationPacketExtensionProvider

public GeolocationPacketExtensionProvider()
Creates a new GeolocationPacketExtensionProvider. ProviderManager requires that every PacketExtensionProvider has a public, no-argument constructor

Method Detail

parseExtension

public org.jivesoftware.smack.packet.PacketExtension parseExtension(org.xmlpull.v1.XmlPullParser parser)
                                                             throws Exception
Parses a GeolocationPacketExtension packet (extension sub-packet).

Specified by:
parseExtension in interface org.jivesoftware.smack.provider.PacketExtensionProvider
Parameters:
parser - an XML parser.
Returns:
a new GeolocationPacketExtension instance.
Throws:
Exception - if an error occurs parsing the XML.
To do:
Implement this org.jivesoftware.smack.provider.PacketExtensionProvider method

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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