public class FixedResolver extends TransportResolver
TransportResolver.Typecandidates, CHECK_TIMEOUT, type| Constructor and Description |
|---|
FixedResolver(java.lang.String ip,
int port)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancel any asynchronous resolution operation.
|
void |
initialize()
Initialize the resolver.
|
void |
resolve(JingleSession session)
Resolve the IP address.
|
void |
setFixedCandidate(java.lang.String ip,
int port)
Create a basic resolver, where we provide the IP and port.
|
addCandidate, addListener, clear, clearCandidates, getCandidate, getCandidateCount, getCandidates, getCandidatesList, getFreePort, getListenersList, getPreferredCandidate, getType, initializeAndWait, isInitialized, isResolved, isResolving, removeListener, setInitialized, setResolveEnd, setResolveInit, setType, triggerCandidateAddedpublic void setFixedCandidate(java.lang.String ip,
int port)
ip - an IP addressport - a portpublic void resolve(JingleSession session) throws org.jivesoftware.smack.XMPPException, org.jivesoftware.smack.SmackException.NotConnectedException
resolve in class TransportResolverorg.jivesoftware.smack.SmackException.NotConnectedExceptionorg.jivesoftware.smack.XMPPExceptionpublic void initialize()
throws org.jivesoftware.smack.XMPPException
initialize in class TransportResolverorg.jivesoftware.smack.XMPPExceptionpublic void cancel()
throws org.jivesoftware.smack.XMPPException
TransportResolvercancel in class TransportResolverorg.jivesoftware.smack.XMPPException