Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

java.lang.Object
  extended by org.jivesoftware.smack.packet.Packet
      extended by org.jivesoftware.smack.packet.Message
          extended by net.java.sip.communicator.impl.protocol.jabber.extensions.geolocation.GeolocationMessage

public class GeolocationMessage
extends org.jivesoftware.smack.packet.Message

This class extends the smack Message class and allows creating a GeolocationMessage automatically setting the geolocation packet extension.

Author:
Guillaume Schreiner

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.Message
org.jivesoftware.smack.packet.Message.Body, org.jivesoftware.smack.packet.Message.Subject, org.jivesoftware.smack.packet.Message.Type
 
Field Summary
 
Fields inherited from class org.jivesoftware.smack.packet.Packet
DEFAULT_LANGUAGE, ID_NOT_AVAILABLE
 
Constructor Summary
GeolocationMessage(GeolocationPacketExtension geoloc)
          Creates a new, "normal" message.
GeolocationMessage(String to, GeolocationPacketExtension geoloc)
          Creates a new "normal" message to the specified recipient and adds the specified geoloc extension to it.
GeolocationMessage(String to, org.jivesoftware.smack.packet.Message.Type type, GeolocationPacketExtension geoloc)
          Creates a new message with the specified type and recipient and adds the specified geoloc extension to it.
 
Method Summary
 
Methods inherited from class org.jivesoftware.smack.packet.Message
addBody, addSubject, equals, getBodies, getBody, getBody, getBodyLanguages, getLanguage, getSubject, getSubject, getSubjectLanguages, getSubjects, getThread, getType, hashCode, removeBody, removeBody, removeSubject, removeSubject, setBody, setLanguage, setSubject, setThread, setType, toXML
 
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, getXmlns, nextID, removeExtension, setDefaultXmlns, setError, setFrom, setPacketID, setProperty, setTo
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeolocationMessage

public GeolocationMessage(GeolocationPacketExtension geoloc)
Creates a new, "normal" message.

Parameters:
geoloc - the geolocation packet extension to add to this message.

GeolocationMessage

public GeolocationMessage(String to,
                          GeolocationPacketExtension geoloc)
Creates a new "normal" message to the specified recipient and adds the specified geoloc extension to it.

Parameters:
to - the recipient of the message.
geoloc - the geolocation packet extension to add to this message.

GeolocationMessage

public GeolocationMessage(String to,
                          org.jivesoftware.smack.packet.Message.Type type,
                          GeolocationPacketExtension geoloc)
Creates a new message with the specified type and recipient and adds the specified geoloc extension to it.

Parameters:
to - the recipient of the message.
geoloc - the geolocation packet extension to add to this message.
type - the message type.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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