Class JingleTransport
java.lang.Object
org.jivesoftware.smackx.jingleold.packet.JingleTransport
- All Implemented Interfaces:
Element
,ExtensionElement
,NamedElement
,XmlElement
,XmlLangElement
- Direct Known Subclasses:
JingleTransport.Ice
,JingleTransport.RawUdp
A jingle transport extension.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
RTP-ICE profile.static class
Candidate element in the transport.static class
Raw UDP profile. -
Field Summary
Modifier and TypeFieldDescriptionprotected final List<JingleTransport.JingleTransportCandidate>
protected String
static final String
-
Constructor Summary
ConstructorDescriptionDefault constructor.Copy constructor.Utility constructor, with a transport candidate element. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a transport candidate.Get an iterator for the candidates.int
Get the number of transport candidates.Get the list of candidates.Returns the XML element name of the element.Get the namespace.protected void
setNamespace
(String ns) Set the namespace.toXML
(XmlEnvironment enclosingNamespace) Return the XML representation for this element.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getQName
-
Field Details
-
NODENAME
- See Also:
-
namespace
-
candidates
-
-
Constructor Details
-
JingleTransport
public JingleTransport()Default constructor. -
JingleTransport
Utility constructor, with a transport candidate element.- Parameters:
candidate
- A transport candidate element to add.
-
JingleTransport
Copy constructor.- Parameters:
tr
- the other jingle transport.
-
-
Method Details
-
addCandidate
Adds a transport candidate.- Parameters:
candidate
- the candidate
-
getCandidates
Get an iterator for the candidates.- Returns:
- an iterator
-
getCandidatesList
Get the list of candidates.- Returns:
- The candidates list.
-
getCandidatesCount
Get the number of transport candidates.- Returns:
- The number of transport candidates contained.
-
getElementName
Returns the XML element name of the element.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the XML element name of the element.
-
setNamespace
Set the namespace.- Parameters:
ns
- The namespace
-
getNamespace
Get the namespace.- Specified by:
getNamespace
in interfaceXmlElement
- Returns:
- The namespace
-
toXML
Return the XML representation for this element.
-