public abstract class TransportCandidate extends Object
Modifier and Type | Class and Description |
---|---|
class |
TransportCandidate.CandidateEcho |
static class |
TransportCandidate.Channel
Type-safe enum for the transportElement channel
|
static class |
TransportCandidate.Fixed
Fixed transport candidate
|
static class |
TransportCandidate.Protocol
Type-safe enum for the transportElement protocol
|
Constructor and Description |
---|
TransportCandidate()
Empty constructor
|
TransportCandidate(String ip,
int port)
Constructor with IP address and port
|
TransportCandidate(String ip,
int port,
int generation)
Constructor with IP address and port
|
Modifier and Type | Method and Description |
---|---|
void |
addCandidateEcho(JingleSession session) |
void |
addListener(TransportResolverListener.Checker li)
Add a transport resolver listener.
|
void |
check(List<TransportCandidate> localCandidates)
Check if a transport candidate is usable.
|
boolean |
equals(Object obj) |
TransportCandidate.CandidateEcho |
getCandidateEcho() |
XMPPConnection |
getConnection()
Get the XMPPConnection use to send or receive this candidate
|
int |
getGeneration()
Get the generation for a transportElement definition
|
String |
getIp() |
List<TransportResolverListener.Checker> |
getListenersList()
Get the list of listeners
|
String |
getLocalIp()
Get local IP to bind to this candidate
|
String |
getName()
Get the name used for identifying this transportElement method (optional)
|
String |
getPassword()
Get the password used by ICE or relayed candidate
|
int |
getPort()
Get the port, or 0 for any port.
|
String |
getSessionId()
Get the jingle's sessionId that is using this candidate
|
TransportCandidate |
getSymmetric()
Get the symmetric candidate for this candidate if it exists.
|
boolean |
isNull()
Return true if the candidate is not valid.
|
void |
removeCandidateEcho() |
void |
setConnection(XMPPConnection connection)
Set the XMPPConnection use to send or receive this candidate
|
void |
setGeneration(int generation)
Set the generation for a transportElement definition.
|
void |
setIp(String ip)
Set the IP address.
|
void |
setLocalIp(String localIp)
Set local IP to bind to this candidate
|
void |
setName(String name)
Set a name for identifying this transportElement.
|
void |
setPassword(String password)
Set the password used by ICE or relayed candidate
|
void |
setPort(int port)
Set the port, using 0 for any port
|
void |
setSessionId(String sessionId)
Set the jingle's sessionId that is using this candidate
|
void |
setSymmetric(TransportCandidate symetric)
Set the symetric candidate for this candidate.
|
public TransportCandidate()
public TransportCandidate(String ip, int port)
ip
- The IP address.port
- The port number.public TransportCandidate(String ip, int port, int generation)
ip
- The IP address.port
- The port number.generation
- The generationpublic void addCandidateEcho(JingleSession session) throws SocketException, UnknownHostException
SocketException
UnknownHostException
public void removeCandidateEcho()
public TransportCandidate.CandidateEcho getCandidateEcho()
public String getLocalIp()
public void setLocalIp(String localIp)
localIp
- public TransportCandidate getSymmetric()
public void setSymmetric(TransportCandidate symetric)
symetric
- public String getPassword()
public void setPassword(String password)
password
- a passwordpublic XMPPConnection getConnection()
public void setConnection(XMPPConnection connection)
connection
- public String getSessionId()
public void setSessionId(String sessionId)
sessionId
- public boolean isNull()
public int getPort()
public void setPort(int port)
port
- the portpublic int getGeneration()
public void setGeneration(int generation)
generation
- the generation numberpublic String getName()
public void setName(String name)
name
- the name used for the transportElementpublic void check(List<TransportCandidate> localCandidates)
public List<TransportResolverListener.Checker> getListenersList()
public void addListener(TransportResolverListener.Checker li)
li
- The transport resolver listener to be added.