Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.jabber.extensions.jingleinfo
Class RelayPacketExtension

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.jabber.extensions.AbstractPacketExtension
      extended by net.java.sip.communicator.impl.protocol.jabber.extensions.jingleinfo.RelayPacketExtension
All Implemented Interfaces:
org.jivesoftware.smack.packet.PacketExtension

public class RelayPacketExtension
extends AbstractPacketExtension

Relay packet extension.

Author:
Sebastien Vincent

Field Summary
static String ELEMENT_NAME
          The element name.
static String NAMESPACE
          The namespace.
 
Fields inherited from class net.java.sip.communicator.impl.protocol.jabber.extensions.AbstractPacketExtension
attributes
 
Constructor Summary
RelayPacketExtension()
          Constructor.
 
Method Summary
 String getToken()
          Get the token.
 void setToken(String token)
          Set the token.
 String toXML()
          Get an XML string representation.
 
Methods inherited from class net.java.sip.communicator.impl.protocol.jabber.extensions.AbstractPacketExtension
addChildExtension, getAttribute, getAttributeAsInt, getAttributeAsInt, getAttributeAsString, getAttributeAsURI, getAttributeNames, getChildExtensions, getChildExtensionsOfType, getElementName, getFirstChildOfType, getNamespace, getText, removeAttribute, setAttribute, setNamespace, setText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMESPACE

public static final String NAMESPACE
The namespace.


ELEMENT_NAME

public static final String ELEMENT_NAME
The element name.

See Also:
Constant Field Values
Constructor Detail

RelayPacketExtension

public RelayPacketExtension()
Constructor.

Method Detail

setToken

public void setToken(String token)
Set the token.

Parameters:
token - token

getToken

public String getToken()
Get the token.

Returns:
authentication token

toXML

public String toXML()
Get an XML string representation.

Specified by:
toXML in interface org.jivesoftware.smack.packet.PacketExtension
Overrides:
toXML in class AbstractPacketExtension
Returns:
XML string representation

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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