Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.jabber.extensions.gtalk
Class GTalkCandidatePacketExtension

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.CandidatePacketExtension
          extended by net.java.sip.communicator.impl.protocol.jabber.extensions.gtalk.GTalkCandidatePacketExtension
All Implemented Interfaces:
org.jivesoftware.smack.packet.PacketExtension

public class GTalkCandidatePacketExtension
extends CandidatePacketExtension

Google Talk version of Candidate packet extension.

Author:
Sebastien Vincent

Field Summary
static String ADDRESS_ATTR_NAME
          Address attribute name.
static String AUDIO_RTCP_NAME
          Name for candidate audio RTCP.
static String AUDIO_RTP_NAME
          Name for candidate audio RTP.
static String NAME_ATTR_NAME
          Name attribute name.
static String PASSWORD_ATTR_NAME
          Password attribute name.
static String PREFERENCE_ATTR_NAME
          The name of the "preference" element.
static String USERNAME_ATTR_NAME
          Username attribute name.
static String VIDEO_RTCP_NAME
          Name for candidate video RTCP.
static String VIDEO_RTP_NAME
          Name for candidate video RTP.
 
Fields inherited from class net.java.sip.communicator.impl.protocol.jabber.extensions.jingle.CandidatePacketExtension
COMPONENT_ATTR_NAME, ELEMENT_NAME, FOUNDATION_ATTR_NAME, GENERATION_ATTR_NAME, ID_ATTR_NAME, IP_ATTR_NAME, NETWORK_ATTR_NAME, PORT_ATTR_NAME, PRIORITY_ATTR_NAME, PROTOCOL_ATTR_NAME, REL_ADDR_ATTR_NAME, REL_PORT_ATTR_NAME, RTCP_COMPONENT_ID, RTP_COMPONENT_ID, TYPE_ATTR_NAME
 
Fields inherited from class net.java.sip.communicator.impl.protocol.jabber.extensions.AbstractPacketExtension
attributes
 
Constructor Summary
GTalkCandidatePacketExtension()
          Constructs a new GTalkCandidatePacketExtension.
 
Method Summary
 String getAddress()
          Returns this candidate's Internet Protocol (IP) address; this can be either an IPv4 address or an IPv6 address.
 String getName()
          Returns this candidate's name.
 String getPassword()
          Returns this candidate's password.
 double getPreference()
          Returns this candidate's preference.
 String getUsername()
          Returns this candidate's username.
 void setAddress(String ip)
          Sets this candidate's Internet Protocol (IP) address; this can be either an IPv4 address or an IPv6 address.
 void setName(String name)
          Sets this candidate's name.
 void setPassword(String password)
          Sets this candidate's password.
 void setPreference(double preference)
          Sets this candidate's preference.
 void setType(String type)
          Sets a Candidate Type as defined in ICE-CORE.
 void setUsername(String username)
          Sets this candidate's username.
 
Methods inherited from class net.java.sip.communicator.impl.protocol.jabber.extensions.jingle.CandidatePacketExtension
getComponent, getFoundation, getGeneration, getID, getIP, getNetwork, getPort, getPriority, getProtocol, getRelAddr, getRelPort, getType, setComponent, setFoundation, setGeneration, setID, setIP, setNetwork, setPort, setPriority, setProtocol, setRelAddr, setRelPort, setType
 
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

ADDRESS_ATTR_NAME

public static final String ADDRESS_ATTR_NAME
Address attribute name.

See Also:
Constant Field Values

PREFERENCE_ATTR_NAME

public static final String PREFERENCE_ATTR_NAME
The name of the "preference" element.

See Also:
Constant Field Values

NAME_ATTR_NAME

public static final String NAME_ATTR_NAME
Name attribute name.

See Also:
Constant Field Values

USERNAME_ATTR_NAME

public static final String USERNAME_ATTR_NAME
Username attribute name.

See Also:
Constant Field Values

PASSWORD_ATTR_NAME

public static final String PASSWORD_ATTR_NAME
Password attribute name.

See Also:
Constant Field Values

AUDIO_RTP_NAME

public static final String AUDIO_RTP_NAME
Name for candidate audio RTP.

See Also:
Constant Field Values

AUDIO_RTCP_NAME

public static final String AUDIO_RTCP_NAME
Name for candidate audio RTCP.

See Also:
Constant Field Values

VIDEO_RTP_NAME

public static final String VIDEO_RTP_NAME
Name for candidate video RTP.

See Also:
Constant Field Values

VIDEO_RTCP_NAME

public static final String VIDEO_RTCP_NAME
Name for candidate video RTCP.

See Also:
Constant Field Values
Constructor Detail

GTalkCandidatePacketExtension

public GTalkCandidatePacketExtension()
Constructs a new GTalkCandidatePacketExtension.

Method Detail

setType

public void setType(String type)
Sets a Candidate Type as defined in ICE-CORE.

Parameters:
type - this candidates' type as per ICE's Google dialect.

setName

public void setName(String name)
Sets this candidate's name.

Parameters:
name - this candidate's name

getName

public String getName()
Returns this candidate's name.

Returns:
this candidate's name

setPreference

public void setPreference(double preference)
Sets this candidate's preference.

Parameters:
preference - this candidate's preference

getPreference

public double getPreference()
Returns this candidate's preference.

Returns:
this candidate's preference

setUsername

public void setUsername(String username)
Sets this candidate's username.

Parameters:
username - this candidate's username

getUsername

public String getUsername()
Returns this candidate's username.

Returns:
this candidate's username

setPassword

public void setPassword(String password)
Sets this candidate's password.

Parameters:
password - this candidate's password

getPassword

public String getPassword()
Returns this candidate's password.

Returns:
this candidate's password

setAddress

public void setAddress(String ip)
Sets this candidate's Internet Protocol (IP) address; this can be either an IPv4 address or an IPv6 address.

Parameters:
ip - this candidate's IPv4 or IPv6 address.

getAddress

public String getAddress()
Returns this candidate's Internet Protocol (IP) address; this can be either an IPv4 address or an IPv6 address.

Returns:
this candidate's IPv4 or IPv6 address.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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