Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.jabber.extensions.geolocation.GeolocationJabberUtils

public class GeolocationJabberUtils
extends Object

This class give some static methods for converting a geolocation message to a different format.

Author:
Guillaume Schreiner

Constructor Summary
GeolocationJabberUtils()
           
 
Method Summary
static Map<String,String> convertExtensionToMap(GeolocationPacketExtension geolocExt)
          Convert geolocation from GeolocationExtension format to Map format
static GeolocationPacketExtension convertMapToExtension(Map<String,String> geolocation)
          Convert a geolocation details Map to a GeolocationPacketExtension format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeolocationJabberUtils

public GeolocationJabberUtils()
Method Detail

convertExtensionToMap

public static Map<String,String> convertExtensionToMap(GeolocationPacketExtension geolocExt)
Convert geolocation from GeolocationExtension format to Map format

Parameters:
geolocExt - the GeolocationExtension XML message
Returns:
a Map with geolocation information

convertMapToExtension

public static GeolocationPacketExtension convertMapToExtension(Map<String,String> geolocation)
Convert a geolocation details Map to a GeolocationPacketExtension format

Parameters:
geolocation - a Map with geolocation information
Returns:
a GeolocationExtension ready to be included into a Jabber message

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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