Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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

public class ExecutionPacketExtension
extends AbstractPacketExtension

Execution packet extension.

Author:
Sebastien Vincent

Field Summary
static String ELEMENT_BY
          "By" element name.
static String ELEMENT_DISCONNECTION_NAME
          The name of the element that contains the media data.
static String ELEMENT_JOINING_NAME
          The name of the element that contains the media data.
static String ELEMENT_MODIFIED_NAME
          The name of the element that contains the media data.
static String ELEMENT_REASON
          "Reason" element name.
static String ELEMENT_REFERRED_NAME
          The name of the element that contains the media data.
static String ELEMENT_WHEN
          "When" 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
ExecutionPacketExtension(String elementName)
          Constructor.
 
Method Summary
 String getBy()
          Get "by" field.
 String getReason()
          Get "reason" field.
 String getWhen()
          Get "when" field.
 void setBy(String by)
          Set "by" field.
 void setReason(String reason)
          Set "reason" field.
 void setWhen(String when)
          Set "when" field.
 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_REFERRED_NAME

public static final String ELEMENT_REFERRED_NAME
The name of the element that contains the media data.

See Also:
Constant Field Values

ELEMENT_DISCONNECTION_NAME

public static final String ELEMENT_DISCONNECTION_NAME
The name of the element that contains the media data.

See Also:
Constant Field Values

ELEMENT_JOINING_NAME

public static final String ELEMENT_JOINING_NAME
The name of the element that contains the media data.

See Also:
Constant Field Values

ELEMENT_MODIFIED_NAME

public static final String ELEMENT_MODIFIED_NAME
The name of the element that contains the media data.

See Also:
Constant Field Values

ELEMENT_BY

public static final String ELEMENT_BY
"By" element name.

See Also:
Constant Field Values

ELEMENT_REASON

public static final String ELEMENT_REASON
"Reason" element name.

See Also:
Constant Field Values

ELEMENT_WHEN

public static final String ELEMENT_WHEN
"When" element name.

See Also:
Constant Field Values
Constructor Detail

ExecutionPacketExtension

public ExecutionPacketExtension(String elementName)
Constructor.

Parameters:
elementName - name of the element
Method Detail

setBy

public void setBy(String by)
Set "by" field.

Parameters:
by - string to set

getBy

public String getBy()
Get "by" field.

Returns:
"by" field

setWhen

public void setWhen(String when)
Set "when" field.

Parameters:
when - string to set

getWhen

public String getWhen()
Get "when" field.

Returns:
"when" field

setReason

public void setReason(String reason)
Set "reason" field.

Parameters:
reason - string to set

getReason

public String getReason()
Get "reason" field.

Returns:
"reason" field

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.