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
Nested ClassesModifier and TypeClassDescriptionstatic classRTP-ICE profile.static classCandidate element in the transport.static classRaw UDP profile. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<JingleTransport.JingleTransportCandidate>protected Stringstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Copy constructor.Utility constructor, with a transport candidate element. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a transport candidate.Get an iterator for the candidates.intGet the number of transport candidates.Get the list of candidates.Returns the XML element name of the element.Get the namespace.protected voidsetNamespace(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, waitMethods 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:
getElementNamein interfaceNamedElement- Returns:
- the XML element name of the element.
-
setNamespace
Set the namespace.- Parameters:
ns- The namespace
-
getNamespace
Get the namespace.- Specified by:
getNamespacein interfaceXmlElement- Returns:
- The namespace
-
toXML
Return the XML representation for this element.
-