public class FixedResolver extends TransportResolver
TransportResolver.Type
candidates, 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, triggerCandidateAdded
public 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, java.lang.InterruptedException
resolve
in class TransportResolver
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
org.jivesoftware.smack.XMPPException
public void initialize() throws org.jivesoftware.smack.XMPPException
initialize
in class TransportResolver
org.jivesoftware.smack.XMPPException
public void cancel() throws org.jivesoftware.smack.XMPPException
TransportResolver
cancel
in class TransportResolver
org.jivesoftware.smack.XMPPException