Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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

public class MediaPacketExtension
extends AbstractPacketExtension

Media packet extension.

Author:
Sebastien Vincent

Field Summary
static String ELEMENT_DISPLAY_TEXT
          Display text element name.
static String ELEMENT_LABEL
          Label element name.
static String ELEMENT_NAME
          The name of the element that contains the media data.
static String ELEMENT_SRC_ID
          Source ID element name.
static String ELEMENT_STATUS
          Status element name.
static String ELEMENT_TYPE
          Type element name.
static String ID_ATTR_NAME
          ID attribute 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
MediaPacketExtension(String id)
          Constructor.
 
Method Summary
 String getDisplayText()
          Get display text.
 String getLabel()
          Get label.
 String getSrcID()
          Get src-id.
 String getStatus()
          Get status.
 String getType()
          Get type.
 void setDisplayText(String displayText)
          Set display text.
 void setLabel(String label)
          Set label.
 void setSrcID(String srcId)
          Set src-id.
 void setStatus(String status)
          Set status.
 void setType(String type)
          Set type.
 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_SRC_ID

public static final String ELEMENT_SRC_ID
Source ID element name.

See Also:
Constant Field Values

ELEMENT_LABEL

public static final String ELEMENT_LABEL
Label element name.

See Also:
Constant Field Values

ELEMENT_TYPE

public static final String ELEMENT_TYPE
Type element name.

See Also:
Constant Field Values

ELEMENT_STATUS

public static final String ELEMENT_STATUS
Status element name.

See Also:
Constant Field Values

ID_ATTR_NAME

public static final String ID_ATTR_NAME
ID attribute name.

See Also:
Constant Field Values
Constructor Detail

MediaPacketExtension

public MediaPacketExtension(String id)
Constructor.

Parameters:
id - media ID
Method Detail

setLabel

public void setLabel(String label)
Set label.

Parameters:
label - label

setStatus

public void setStatus(String status)
Set status.

Parameters:
status - status.

setSrcID

public void setSrcID(String srcId)
Set src-id.

Parameters:
srcId - src-id

setType

public void setType(String type)
Set type.

Parameters:
type - type

setDisplayText

public void setDisplayText(String displayText)
Set display text.

Parameters:
displayText - display text

getDisplayText

public String getDisplayText()
Get display text.

Returns:
display text

getType

public String getType()
Get type.

Returns:
type

getLabel

public String getLabel()
Get label.

Returns:
label

getStatus

public String getStatus()
Get status.

Returns:
status.

getSrcID

public String getSrcID()
Get src-id.

Returns:
src-id

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.