|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jivesoftware.smackx.jingle.nat.TransportCandidate
public abstract class TransportCandidate
Transport candidate.
A candidate represents the possible transport for data interchange between the two endpoints.
| Nested Class Summary | |
|---|---|
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 Summary | |
|---|---|
TransportCandidate()
Empty constructor |
|
TransportCandidate(java.lang.String ip,
int port)
Constructor with IP address and port |
|
TransportCandidate(java.lang.String ip,
int port,
int generation)
Constructor with IP address and port |
|
| Method Summary | |
|---|---|
void |
addCandidateEcho(JingleSession session)
|
void |
addListener(TransportResolverListener.Checker li)
Add a transport resolver listener. |
void |
check(java.util.List<TransportCandidate> localCandidates)
Check if a transport candidate is usable. |
boolean |
equals(java.lang.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 |
java.lang.String |
getIp()
|
java.util.List<TransportResolverListener.Checker> |
getListenersList()
Get the list of listeners |
java.lang.String |
getLocalIp()
Get local IP to bind to this candidate |
java.lang.String |
getName()
Get the name used for identifying this transportElement method (optional) |
java.lang.String |
getPassword()
Get the password used by ICE or relayed candidate |
int |
getPort()
Get the port, or 0 for any port. |
java.lang.String |
getSessionId()
Get the jingle´s sessionId that is using this candidate |
TransportCandidate |
getSymmetric()
Get the symetric 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(java.lang.String ip)
Set the IP address. |
void |
setLocalIp(java.lang.String localIp)
Set local IP to bind to this candidate |
void |
setName(java.lang.String name)
Set a name for identifying this transportElement. |
void |
setPassword(java.lang.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(java.lang.String sessionId)
Set the jingle´s sessionId that is using this candidate |
void |
setSymmetric(TransportCandidate symetric)
Set the symetric candidate for this candidate. |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransportCandidate()
public TransportCandidate(java.lang.String ip,
int port)
ip - The IP address.port - The port number.
public TransportCandidate(java.lang.String ip,
int port,
int generation)
ip - The IP address.port - The port number.generation - The generation| Method Detail |
|---|
public void addCandidateEcho(JingleSession session)
throws java.net.SocketException,
java.net.UnknownHostException
java.net.SocketException
java.net.UnknownHostExceptionpublic void removeCandidateEcho()
public TransportCandidate.CandidateEcho getCandidateEcho()
public java.lang.String getIp()
public void setIp(java.lang.String ip)
ip - the IP addresspublic java.lang.String getLocalIp()
public void setLocalIp(java.lang.String localIp)
localIp - public TransportCandidate getSymmetric()
public void setSymmetric(TransportCandidate symetric)
symetric - public java.lang.String getPassword()
public void setPassword(java.lang.String password)
password - a passwordpublic XMPPConnection getConnection()
public void setConnection(XMPPConnection connection)
connection - public java.lang.String getSessionId()
public void setSessionId(java.lang.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 java.lang.String getName()
public void setName(java.lang.String name)
name - the name used for the transportElementpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic void check(java.util.List<TransportCandidate> localCandidates)
public java.util.List<TransportResolverListener.Checker> getListenersList()
public void addListener(TransportResolverListener.Checker li)
li - The transport resolver listener to be added.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||