|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.jabber.extensions.AbstractPacketExtension
net.java.sip.communicator.impl.protocol.jabber.extensions.jingle.IceUdpTransportPacketExtension
public class IceUdpTransportPacketExtension
An AbstractPacketExtension implementation for transport elements.
| Field Summary | |
|---|---|
static String |
ELEMENT_NAME
The name of the "transport" element. |
static String |
NAMESPACE
The name of the "transport" element. |
static String |
PWD_ATTR_NAME
The name of the pwd ICE attribute. |
static String |
UFRAG_ATTR_NAME
The name of the ufrag ICE attribute. |
| Fields inherited from class net.java.sip.communicator.impl.protocol.jabber.extensions.AbstractPacketExtension |
|---|
attributes |
| Constructor Summary | |
|---|---|
|
IceUdpTransportPacketExtension()
Creates a new IceUdpTransportPacketExtension instance. |
protected |
IceUdpTransportPacketExtension(String namespace,
String elementName)
Creates a new IceUdpTransportPacketExtension instance with the
specified namespace and elementName. |
| Method Summary | |
|---|---|
void |
addCandidate(CandidatePacketExtension candidate)
Adds candidate to the list of CandidatePacketExtensions
registered with this transport. |
void |
addChildExtension(org.jivesoftware.smack.packet.PacketExtension childExtension)
Tries to determine whether childExtension is a CandidatePacketExtension, a RemoteCandidatePacketExtension or
something else and then adds it as such. |
List<CandidatePacketExtension> |
getCandidateList()
Returns the list of CandidatePacketExtensions currently
registered with this transport. |
List<? extends org.jivesoftware.smack.packet.PacketExtension> |
getChildExtensions()
Returns this element's child (local or remote) candidate elements. |
String |
getPassword()
Returns the ICE defined password attribute. |
RemoteCandidatePacketExtension |
getRemoteCandidate()
Returns the in-use candidate for this session. |
String |
getUfrag()
Returns the ICE defined user fragment attribute. |
boolean |
removeCandidate(CandidatePacketExtension candidate)
Removes candidate from the list of CandidatePacketExtensions registered with this transport. |
void |
setPassword(String pwd)
Sets the ICE defined password attribute. |
void |
setRemoteCandidate(RemoteCandidatePacketExtension candidate)
Sets candidate as the in-use candidate after ICE has terminated. |
void |
setUfrag(String ufrag)
Sets the ICE defined user fragment attribute. |
| Methods inherited from class net.java.sip.communicator.impl.protocol.jabber.extensions.AbstractPacketExtension |
|---|
getAttribute, getAttributeAsInt, getAttributeAsInt, getAttributeAsString, getAttributeAsURI, getAttributeNames, 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 |
|---|
public static final String NAMESPACE
public static final String ELEMENT_NAME
public static final String PWD_ATTR_NAME
public static final String UFRAG_ATTR_NAME
| Constructor Detail |
|---|
public IceUdpTransportPacketExtension()
IceUdpTransportPacketExtension instance.
protected IceUdpTransportPacketExtension(String namespace,
String elementName)
IceUdpTransportPacketExtension instance with the
specified namespace and elementName. The purpose of
this method is to allow RawUdpTransportPacketExtension to
extend this class.
namespace - the XML namespace that the instance should belong to.elementName - the name of the element that we would be representing.| Method Detail |
|---|
public void setPassword(String pwd)
pwd - a password String as defined in RFC 5245public String getPassword()
public void setUfrag(String ufrag)
ufrag - a user fragment String as defined in RFC 5245public String getUfrag()
public List<? extends org.jivesoftware.smack.packet.PacketExtension> getChildExtensions()
getChildExtensions in class AbstractPacketExtensionpublic void addCandidate(CandidatePacketExtension candidate)
CandidatePacketExtensions
registered with this transport.
candidate - the new CandidatePacketExtension to add to this
transport element.public boolean removeCandidate(CandidatePacketExtension candidate)
CandidatePacketExtensions registered with this transport.
candidate - the CandidatePacketExtension to remove from
this transport element
public List<CandidatePacketExtension> getCandidateList()
CandidatePacketExtensions currently
registered with this transport.
CandidatePacketExtensions currently
registered with this transport.public void setRemoteCandidate(RemoteCandidatePacketExtension candidate)
candidate - the new CandidatePacketExtension to set as an
in-use candidate for this session.public RemoteCandidatePacketExtension getRemoteCandidate()
public void addChildExtension(org.jivesoftware.smack.packet.PacketExtension childExtension)
CandidatePacketExtension, a RemoteCandidatePacketExtension or
something else and then adds it as such.
addChildExtension in class AbstractPacketExtensionchildExtension - the extension we'd like to add here.
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||