org.jivesoftware.smackx.packet
Class JingleTransport.JingleTransportCandidate

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

public abstract static class JingleTransport.JingleTransportCandidate
extends java.lang.Object

Candidate element in the transport. This class acts as a view of the "TransportCandidate" in the Jingle space.

Author:
Alvaro Saurin
See Also:
TransportCandidate

Field Summary
static java.lang.String NODENAME
           
 
Constructor Summary
JingleTransport.JingleTransportCandidate()
          Creates a new TransportNegotiator child.
JingleTransport.JingleTransportCandidate(TransportCandidate candidate)
          Creates a new TransportNegotiator child.
 
Method Summary
static java.lang.String getElementName()
          Returns the XML element name of the element.
 TransportCandidate getMediaTransport()
          Get the current transportElement candidate.
 void setMediaTransport(TransportCandidate cand)
          Set the transportElement candidate.
 java.lang.String toXML()
          Obtain a valid XML representation of a trancport candidate
 
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.JingleTransportCandidate

public JingleTransport.JingleTransportCandidate()
Creates a new TransportNegotiator child.


JingleTransport.JingleTransportCandidate

public JingleTransport.JingleTransportCandidate(TransportCandidate candidate)
Creates a new TransportNegotiator child.

Parameters:
candidate - the jmf transport candidate
Method Detail

getElementName

public static java.lang.String getElementName()
Returns the XML element name of the element.

Returns:
the XML element name of the element.

getMediaTransport

public TransportCandidate getMediaTransport()
Get the current transportElement candidate.

Returns:
the transportElement candidate

setMediaTransport

public void setMediaTransport(TransportCandidate cand)
Set the transportElement candidate.

Parameters:
cand - the transportElement candidate

toXML

public java.lang.String toXML()
Obtain a valid XML representation of a trancport candidate

Returns:
A string containing the XML dump of the transport candidate.