public class IceUdpTransportPacketExtension extends AbstractPacketExtension
AbstractPacketExtension
implementation for transport elements.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELEMENT_NAME
The name of the "transport" element.
|
static java.lang.String |
NAMESPACE
The name of the "transport" element.
|
static java.lang.String |
PWD_ATTR_NAME
The name of the pwd ICE attribute.
|
static java.lang.String |
UFRAG_ATTR_NAME
The name of the ufrag ICE attribute.
|
attributes
Modifier | Constructor and Description |
---|---|
|
IceUdpTransportPacketExtension()
Creates a new
IceUdpTransportPacketExtension instance. |
protected |
IceUdpTransportPacketExtension(java.lang.String namespace,
java.lang.String elementName)
Creates a new
IceUdpTransportPacketExtension instance with the
specified namespace and elementName. |
Modifier and Type | Method and Description |
---|---|
void |
addCandidate(CandidatePacketExtension candidate)
Adds candidate to the list of
CandidatePacketExtension s
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. |
static IceUdpTransportPacketExtension |
cloneTransportAndCandidates(IceUdpTransportPacketExtension src)
Clones a specific IceUdpTransportPacketExtension and its
candidates.
|
static IceUdpTransportPacketExtension |
cloneTransportAndCandidates(IceUdpTransportPacketExtension src,
boolean copyDtls)
Clones a specific IceUdpTransportPacketExtension and its
candidates.
|
java.util.List<CandidatePacketExtension> |
getCandidateList()
Returns the list of
CandidatePacketExtension s currently
registered with this transport. |
java.util.List<? extends org.jivesoftware.smack.packet.PacketExtension> |
getChildExtensions()
Returns this element's child (local or remote) candidate elements.
|
java.lang.String |
getPassword()
Returns the ICE defined password attribute.
|
RemoteCandidatePacketExtension |
getRemoteCandidate()
Returns the in-use candidate for this session.
|
java.lang.String |
getUfrag()
Returns the ICE defined user fragment attribute.
|
boolean |
isRtcpMux()
Checks whether an 'rtcp-mux' extension has been added to this
IceUdpTransportPacketExtension.
|
boolean |
removeCandidate(CandidatePacketExtension candidate)
Removes candidate from the list of
CandidatePacketExtension s registered with this transport. |
boolean |
removeChildExtension(org.jivesoftware.smack.packet.PacketExtension childExtension)
Removes given PacketExtension from the list of child packet
extensions.
|
void |
setPassword(java.lang.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(java.lang.String ufrag)
Sets the ICE defined user fragment attribute.
|
addPacket, clone, getAttribute, getAttributeAsInt, getAttributeAsInt, getAttributeAsString, getAttributeAsURI, getAttributeNames, getChildExtensionsOfType, getElementName, getFirstChildOfType, getNamespace, getPackets, getText, removeAttribute, setAttribute, setNamespace, setText, toXML
public static final java.lang.String NAMESPACE
public static final java.lang.String ELEMENT_NAME
public static final java.lang.String PWD_ATTR_NAME
public static final java.lang.String UFRAG_ATTR_NAME
public IceUdpTransportPacketExtension()
IceUdpTransportPacketExtension
instance.protected IceUdpTransportPacketExtension(java.lang.String namespace, java.lang.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.public void setPassword(java.lang.String pwd)
pwd
- a password String as defined in RFC 5245public java.lang.String getPassword()
public void setUfrag(java.lang.String ufrag)
ufrag
- a user fragment String as defined in RFC 5245public java.lang.String getUfrag()
public java.util.List<? extends org.jivesoftware.smack.packet.PacketExtension> getChildExtensions()
getChildExtensions
in class AbstractPacketExtension
public void addCandidate(CandidatePacketExtension candidate)
CandidatePacketExtension
s
registered with this transport.candidate
- the new CandidatePacketExtension
to add to this
transport element.public boolean removeCandidate(CandidatePacketExtension candidate)
CandidatePacketExtension
s registered with this transport.candidate
- the CandidatePacketExtension to remove from
this transport elementpublic boolean removeChildExtension(org.jivesoftware.smack.packet.PacketExtension childExtension)
removeCandidate(CandidatePacketExtension)
should be used instead.childExtension
- PacketExtension instance to be removed
from child packet extensions list.public java.util.List<CandidatePacketExtension> getCandidateList()
CandidatePacketExtension
s currently
registered with this transport.CandidatePacketExtension
s 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 AbstractPacketExtension
childExtension
- the extension we'd like to add here.public boolean isRtcpMux()
public static IceUdpTransportPacketExtension cloneTransportAndCandidates(IceUdpTransportPacketExtension src)
src
- the IceUdpTransportPacketExtension to be clonedjava.lang.Exception
- if an error occurs during the cloning of the specified
src and its candidatespublic static IceUdpTransportPacketExtension cloneTransportAndCandidates(IceUdpTransportPacketExtension src, boolean copyDtls)
src
- the IceUdpTransportPacketExtension to be clonedcopyDtls
- if true will also copy
DtlsFingerprintPacketExtension
.java.lang.Exception
- if an error occurs during the cloning of the specified
src and its candidates
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.