Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.jabber.extensions.coin
Class URIPacketExtension

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

public class URIPacketExtension
extends AbstractPacketExtension

URI packet extension.

Author:
Sebastien Vincent

Field Summary
static String ELEMENT_DISPLAY_TEXT
          Display text element name.
static String ELEMENT_NAME
          The name of the element that contains the URI data.
static String ELEMENT_PURPOSE
          Purpose element name.
static String NAMESPACE
          The namespace that URI belongs to.
 
Fields inherited from class net.java.sip.communicator.impl.protocol.jabber.extensions.AbstractPacketExtension
attributes
 
Constructor Summary
URIPacketExtension(String elementName)
          Constructor.
 
Method Summary
 String getDisplayText()
          Get display text.
 String getPurpose()
          Get purpose.
 void setDisplayText(String displayText)
          Set the display text.
 void setPurpose(String purpose)
          Set the purpose.
 String toXML()
          Returns an XML representation of this extension.
 
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 that URI belongs to.

See Also:
Constant Field Values

ELEMENT_NAME

public static final String ELEMENT_NAME
The name of the element that contains the URI data.

See Also:
Constant Field Values

ELEMENT_DISPLAY_TEXT

public static final String ELEMENT_DISPLAY_TEXT
Display text element name.

See Also:
Constant Field Values

ELEMENT_PURPOSE

public static final String ELEMENT_PURPOSE
Purpose element name.

See Also:
Constant Field Values
Constructor Detail

URIPacketExtension

public URIPacketExtension(String elementName)
Constructor.

Parameters:
elementName - element name
Method Detail

setDisplayText

public void setDisplayText(String displayText)
Set the display text.

Parameters:
displayText - display text

getDisplayText

public String getDisplayText()
Get display text.

Returns:
display text

setPurpose

public void setPurpose(String purpose)
Set the purpose.

Parameters:
purpose - purpose

getPurpose

public String getPurpose()
Get purpose.

Returns:
purpose

toXML

public String toXML()
Returns an XML representation of this extension.

Specified by:
toXML in interface org.jivesoftware.smack.packet.PacketExtension
Overrides:
toXML in class AbstractPacketExtension
Returns:
an XML representation of this extension.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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