public class FixedResolver extends TransportResolver
TransportResolver.Type
candidates, CHECK_TIMEOUT, type
Constructor and Description |
---|
FixedResolver(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(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 FixedResolver(String ip, int port)
public void setFixedCandidate(String ip, int port)
ip
- an IP addressport
- a portpublic void resolve(JingleSession session) throws XMPPException, SmackException.NotConnectedException, InterruptedException
resolve
in class TransportResolver
SmackException.NotConnectedException
InterruptedException
XMPPException
public void initialize() throws XMPPException
initialize
in class TransportResolver
XMPPException
public void cancel() throws XMPPException
TransportResolver
cancel
in class TransportResolver
XMPPException