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 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 List<JingleTransport.JingleTransportCandidate>
candidates
protected String
namespace
static 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.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(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 String NODENAME
- See Also:
- Constant Field Values
-
candidates
protected final 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 Iterator<JingleTransport.JingleTransportCandidate> getCandidates()
Get an iterator for the candidates.- Returns:
- an iterator
-
getCandidatesList
public 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 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(String ns)
Set the namespace.- Parameters:
ns
- The namespace
-
getNamespace
public String getNamespace()
Get the namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- The namespace
-
toXML
public String toXML(XmlEnvironment enclosingNamespace)
Return the XML representation for this element.
-
-