Class JingleTransport
- java.lang.Object
-
- org.jivesoftware.smackx.jingleold.packet.JingleTransport
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
- Direct Known Subclasses:
JingleTransport.Ice
,JingleTransport.RawUdp
public class JingleTransport extends java.lang.Object implements ExtensionElement
A jingle transport extension.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JingleTransport.Ice
RTP-ICE profile.static class
JingleTransport.JingleTransportCandidate
Candidate element in the transport.static class
JingleTransport.RawUdp
Raw UDP profile.
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<JingleTransport.JingleTransportCandidate>
candidates
protected java.lang.String
namespace
static java.lang.String
NODENAME
-
Constructor Summary
Constructors Constructor Description JingleTransport()
Default constructor.JingleTransport(JingleTransport tr)
Copy constructor.JingleTransport(JingleTransport.JingleTransportCandidate candidate)
Utility constructor, with a transport candidate element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(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.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
Field Detail
-
NODENAME
public static final java.lang.String NODENAME
- See Also:
- Constant Field Values
-
namespace
protected java.lang.String namespace
-
candidates
protected final java.util.List<JingleTransport.JingleTransportCandidate> candidates
-
-
Constructor Detail
-
JingleTransport
public JingleTransport()
Default constructor.
-
JingleTransport
public JingleTransport(JingleTransport.JingleTransportCandidate candidate)
Utility constructor, with a transport candidate element.- Parameters:
candidate
- A transport candidate element to add.
-
JingleTransport
public JingleTransport(JingleTransport tr)
Copy constructor.- Parameters:
tr
- the other jingle transport.
-
-
Method Detail
-
addCandidate
public void addCandidate(JingleTransport.JingleTransportCandidate candidate)
Adds a transport candidate.- Parameters:
candidate
- the candidate
-
getCandidates
public java.util.Iterator<JingleTransport.JingleTransportCandidate> getCandidates()
Get an iterator for the candidates.- Returns:
- an iterator
-
getCandidatesList
public java.util.List<JingleTransport.JingleTransportCandidate> getCandidatesList()
Get the list of candidates.- Returns:
- The candidates list.
-
getCandidatesCount
public int getCandidatesCount()
Get the number of transport candidates.- Returns:
- The number of transport candidates contained.
-
getElementName
public java.lang.String getElementName()
Returns the XML element name of the element.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the XML element name of the element.
-
setNamespace
protected void setNamespace(java.lang.String ns)
Set the namespace.- Parameters:
ns
- The namespace
-
getNamespace
public java.lang.String getNamespace()
Get the namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- The namespace
-
toXML
public java.lang.String toXML(XmlEnvironment enclosingNamespace)
Return the XML representation for this element.
-
-