Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.jabber.extensions.jingle
Class TransferPacketExtension

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

public class TransferPacketExtension
extends AbstractPacketExtension

Implements AbstractPacketExtension for the "transfer" element defined by XEP-0251: Jingle Session Transfer.

Author:
Lyubomir Marinov

Field Summary
static String ELEMENT_NAME
          The name of the "transfer" element.
static String FROM_ATTR_NAME
          The name of the "from" attribute of the "transfer" element.
static String NAMESPACE
          The namespace of the "transfer" element.
static String SID_ATTR_NAME
          The name of the "sid" attribute of the "transfer" element.
static String TO_ATTR_NAME
          The name of the "to" attribute of the "transfer" element.
 
Fields inherited from class net.java.sip.communicator.impl.protocol.jabber.extensions.AbstractPacketExtension
attributes
 
Constructor Summary
TransferPacketExtension()
          Initializes a new TransferPacketExtension instance.
 
Method Summary
 String getFrom()
          Gets the value of the "from" attribute of this "transfer" element.
 String getSID()
          Gets the value of the "sid" attribute of this "transfer" element.
 String getTo()
          Gets the value of the "to" attribute of this "transfer" element.
 void setFrom(String from)
          Sets the value of the "from" attribute of this "transfer" element.
 void setSID(String sid)
          Sets the value of the "sid" attribute of this "transfer" element.
 void setTo(String to)
          Sets the value of the "to" attribute of this "transfer" element.
 
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, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ELEMENT_NAME

public static final String ELEMENT_NAME
The name of the "transfer" element.

See Also:
Constant Field Values

FROM_ATTR_NAME

public static final String FROM_ATTR_NAME
The name of the "from" attribute of the "transfer" element.

See Also:
Constant Field Values

NAMESPACE

public static final String NAMESPACE
The namespace of the "transfer" element.

See Also:
Constant Field Values

SID_ATTR_NAME

public static final String SID_ATTR_NAME
The name of the "sid" attribute of the "transfer" element.

See Also:
Constant Field Values

TO_ATTR_NAME

public static final String TO_ATTR_NAME
The name of the "to" attribute of the "transfer" element.

See Also:
Constant Field Values
Constructor Detail

TransferPacketExtension

public TransferPacketExtension()
Initializes a new TransferPacketExtension instance.

Method Detail

getFrom

public String getFrom()
Gets the value of the "from" attribute of this "transfer" element.

Returns:
the value of the "from" attribute of this "transfer" element

setFrom

public void setFrom(String from)
Sets the value of the "from" attribute of this "transfer" element.

Parameters:
from - the value of the "from" attribute of this "transfer" element

getSID

public String getSID()
Gets the value of the "sid" attribute of this "transfer" element.

Returns:
the value of the "sid" attribute of this "transfer" element

setSID

public void setSID(String sid)
Sets the value of the "sid" attribute of this "transfer" element.

Parameters:
sid - the value of the "sid" attribute of this "transfer" element

getTo

public String getTo()
Gets the value of the "to" attribute of this "transfer" element.

Returns:
the value of the "to" attribute of this "transfer" element

setTo

public void setTo(String to)
Sets the value of the "to" attribute of this "transfer" element.

Parameters:
to - the value of the "to" attribute of this "transfer" element

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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