public class JingleTransport
extends java.lang.Object
implements org.jivesoftware.smack.packet.ExtensionElement
| Modifier and Type | Class and Description |
|---|---|
static class |
JingleTransport.Ice
RTP-ICE profile
|
static class |
JingleTransport.JingleTransportCandidate
Candidate element in the transport.
|
static class |
JingleTransport.RawUdp
Raw UDP profile.
|
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<JingleTransport.JingleTransportCandidate> |
candidates |
protected java.lang.String |
namespace |
static java.lang.String |
NODENAME |
| Constructor and Description |
|---|
JingleTransport()
Default constructor.
|
JingleTransport(JingleTransport.JingleTransportCandidate candidate)
Utility constructor, with a transport candidate element.
|
JingleTransport(JingleTransport tr)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCandidate(JingleTransport.JingleTransportCandidate candidate)
Adds a transport candidate.
|
java.util.Iterator<JingleTransport.JingleTransportCandidate> |
getCandidates()
Get an iterator for the candidates
|
int |
getCandidatesCount()
Get the number of transport candidates.
|
java.util.List<JingleTransport.JingleTransportCandidate> |
getCandidatesList()
Get the list of candidates.
|
java.lang.String |
getElementName()
Returns the XML element name of the element.
|
java.lang.String |
getNamespace()
Get the namespace.
|
protected void |
setNamespace(java.lang.String ns)
Set the namespace.
|
java.lang.String |
toXML()
Return the XML representation for this element.
|
public static final java.lang.String NODENAME
protected java.lang.String namespace
protected final java.util.List<JingleTransport.JingleTransportCandidate> candidates
public JingleTransport()
public JingleTransport(JingleTransport.JingleTransportCandidate candidate)
candidate - A transport candidate element to add.public JingleTransport(JingleTransport tr)
tr - the other jingle transport.public void addCandidate(JingleTransport.JingleTransportCandidate candidate)
candidate - the candidatepublic java.util.Iterator<JingleTransport.JingleTransportCandidate> getCandidates()
public java.util.List<JingleTransport.JingleTransportCandidate> getCandidatesList()
public int getCandidatesCount()
public java.lang.String getElementName()
getElementName in interface org.jivesoftware.smack.packet.NamedElementprotected void setNamespace(java.lang.String ns)
ns - The namespacepublic java.lang.String getNamespace()
getNamespace in interface org.jivesoftware.smack.packet.ExtensionElementpublic java.lang.String toXML()
toXML in interface org.jivesoftware.smack.packet.Element