org.jivesoftware.smackx.packet
Class JingleTransport

java.lang.Object
  extended by org.jivesoftware.smackx.packet.JingleTransport
Direct Known Subclasses:
JingleTransport.Ice, JingleTransport.RawUdp

public class JingleTransport
extends java.lang.Object

A jingle transport extension

Author:
Alvaro Saurin

Nested Class Summary
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
static java.lang.String NODENAME
           
 
Constructor Summary
JingleTransport()
          Default constructor.
JingleTransport(JingleTransport.JingleTransportCandidate candidate)
          Utility constructor, with a transport candidate element.
JingleTransport(JingleTransport tr)
          Copy constructor.
 
Method Summary
 void addCandidate(JingleTransport.JingleTransportCandidate candidate)
          Adds a transport candidate.
 java.util.Iterator 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.
 java.lang.String toXML()
          Return the XML representation for this element.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NODENAME

public static final java.lang.String NODENAME
See Also:
Constant Field Values
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 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.

Returns:
the XML element name of the element.

getNamespace

public java.lang.String getNamespace()
Get the namespace.

Returns:
The namespace

toXML

public java.lang.String toXML()
Return the XML representation for this element.