|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jivesoftware.smackx.jingle.nat.TransportResolver
public abstract class TransportResolver
A TransportResolver is used for obtaining a list of valid transport candidates. A transport candidate is composed by an IP address and a port number. It is called candidate, because it can be elected or not.
| Nested Class Summary | |
|---|---|
static class |
TransportResolver.Type
|
| Field Summary | |
|---|---|
static int |
CHECK_TIMEOUT
|
TransportResolver.Type |
type
|
| Method Summary | |
|---|---|
void |
addListener(TransportResolverListener li)
Add a transport resolver listener. |
abstract void |
cancel()
Cancel any asynchronous resolution operation. |
void |
clear()
Clear the list of candidates and start a new resolution process. |
TransportCandidate |
getCandidate(int i)
Get the n-th candidate |
int |
getCandidateCount()
Get the numer of transport candidates. |
java.util.Iterator |
getCandidates()
Get an iterator for the list of candidates |
java.util.List<TransportCandidate> |
getCandidatesList()
Get the list of candidates |
java.util.ArrayList |
getListenersList()
Get the list of listeners |
TransportCandidate |
getPreferredCandidate()
Get the candididate with the highest preference. |
TransportResolver.Type |
getType()
|
abstract void |
initialize()
Initialize the Resolver |
void |
initializeAndWait()
Initialize Transport Resolver and wait until it is complete unitialized. |
boolean |
isInitialized()
Chack if the Transport Resolver is initialized |
boolean |
isResolved()
Return true if the resolver has finished the search for transport candidates. |
boolean |
isResolving()
Return true if the resolver is working. |
void |
removeListener(TransportResolverListener li)
Removes a transport resolver listener. |
abstract void |
resolve(JingleSession session)
Start a the resolution. |
void |
setInitialized()
Set the Transport Resolver as initialized. |
void |
setType(TransportResolver.Type type)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public TransportResolver.Type type
public static final int CHECK_TIMEOUT
| Method Detail |
|---|
public TransportResolver.Type getType()
public void setType(TransportResolver.Type type)
public abstract void initialize()
throws XMPPException
XMPPException
public abstract void resolve(JingleSession session)
throws XMPPException
XMPPException
public void clear()
throws XMPPException
XMPPException
public abstract void cancel()
throws XMPPException
XMPPExceptionpublic boolean isResolving()
public boolean isResolved()
public void setInitialized()
public boolean isInitialized()
public void addListener(TransportResolverListener li)
li - The transport resolver listener to be added.public void removeListener(TransportResolverListener li)
li - The transport resolver listener to be removedpublic java.util.ArrayList getListenersList()
public java.util.Iterator getCandidates()
public TransportCandidate getPreferredCandidate()
public int getCandidateCount()
public java.util.List<TransportCandidate> getCandidatesList()
public TransportCandidate getCandidate(int i)
public void initializeAndWait()
throws XMPPException
XMPPException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||