public class JingleTransport extends Object implements PacketExtension
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 List<JingleTransport.JingleTransportCandidate> |
candidates |
protected String |
namespace |
static 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.
|
Iterator<JingleTransport.JingleTransportCandidate> |
getCandidates()
Get an iterator for the candidates
|
int |
getCandidatesCount()
Get the number of transport candidates.
|
List<JingleTransport.JingleTransportCandidate> |
getCandidatesList()
Get the list of candidates.
|
String |
getElementName()
Returns the XML element name of the element.
|
String |
getNamespace()
Get the namespace.
|
protected void |
setNamespace(String ns)
Set the namespace.
|
String |
toXML()
Return the XML representation for this element.
|
public static final String NODENAME
protected final 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 Iterator<JingleTransport.JingleTransportCandidate> getCandidates()
public List<JingleTransport.JingleTransportCandidate> getCandidatesList()
public int getCandidatesCount()
public String getElementName()
getElementName
in interface PacketExtension
protected void setNamespace(String ns)
ns
- The namespacepublic String getNamespace()
getNamespace
in interface PacketExtension
public String toXML()
toXML
in interface PacketExtension