public class FixedResolver extends TransportResolver
TransportResolver.Typecandidates, 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, triggerCandidateAddedpublic 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
resolve in class TransportResolverSmackException.NotConnectedExceptionXMPPExceptionpublic void initialize() throws XMPPException
initialize in class TransportResolverXMPPExceptionpublic void cancel() throws XMPPException
TransportResolvercancel in class TransportResolverXMPPException