Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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.HostInfoPacketExtension
All Implemented Interfaces:
org.jivesoftware.smack.packet.PacketExtension

public class HostInfoPacketExtension
extends AbstractPacketExtension

Host Information 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 media data.
static String ELEMENT_WEB_PAGE
          Web page element name.
static String NAMESPACE
          The namespace that media belongs to.
 
Fields inherited from class net.java.sip.communicator.impl.protocol.jabber.extensions.AbstractPacketExtension
attributes
 
Constructor Summary
HostInfoPacketExtension()
          Constructor.
 
Method Summary
 String getDisplayText()
          Get display text.
 String getWebPage()
          Get web page.
 void setDisplayText(String displayText)
          Set display text.
 void setWebPage(String webPage)
          Set web page.
 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 that media belongs to.


ELEMENT_NAME

public static final String ELEMENT_NAME
The name of the element that contains the media 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_WEB_PAGE

public static final String ELEMENT_WEB_PAGE
Web page element name.

See Also:
Constant Field Values
Constructor Detail

HostInfoPacketExtension

public HostInfoPacketExtension()
Constructor.

Method Detail

setDisplayText

public void setDisplayText(String displayText)
Set display text.

Parameters:
displayText - display text

getDisplayText

public String getDisplayText()
Get display text.

Returns:
display text

setWebPage

public void setWebPage(String webPage)
Set web page.

Parameters:
webPage - web page

getWebPage

public String getWebPage()
Get web page.

Returns:
web page

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.