net.java.sip.communicator.impl.protocol.jabber.extensions.geolocation
Class GeolocationJabberUtils
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeolocationJabberUtils
public GeolocationJabberUtils()
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.
Distributable under LGPL license.