org.jivesoftware.smackx.jingle.nat
Class BasicResolver

java.lang.Object
  extended by org.jivesoftware.smackx.jingle.nat.TransportResolver
      extended by org.jivesoftware.smackx.jingle.nat.BasicResolver

public class BasicResolver
extends TransportResolver

Basic Resolver takes all IP addresses of the interfaces and uses the first non-loopback address. A very simple and easy to use resolver.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jivesoftware.smackx.jingle.nat.TransportResolver
TransportResolver.Type
 
Field Summary
 
Fields inherited from class org.jivesoftware.smackx.jingle.nat.TransportResolver
CHECK_TIMEOUT, type
 
Constructor Summary
BasicResolver()
          Constructor.
 
Method Summary
 void cancel()
          Cancel any asynchronous resolution operation.
 void initialize()
          Initialize the Resolver
 void resolve(JingleSession session)
          Resolve the IP address.
 
Methods inherited from class org.jivesoftware.smackx.jingle.nat.TransportResolver
addListener, clear, getCandidate, getCandidateCount, getCandidates, getCandidatesList, getListenersList, getPreferredCandidate, getType, initializeAndWait, isInitialized, isResolved, isResolving, removeListener, setInitialized, setType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicResolver

public BasicResolver()
Constructor.

Method Detail

resolve

public void resolve(JingleSession session)
             throws XMPPException
Resolve the IP address.

The BasicResolver takes the IP addresses of the interfaces and uses the first non-loopback, non-linklocal and non-sitelocal address.

Specified by:
resolve in class TransportResolver
Throws:
XMPPException

initialize

public void initialize()
                throws XMPPException
Description copied from class: TransportResolver
Initialize the Resolver

Specified by:
initialize in class TransportResolver
Throws:
XMPPException

cancel

public void cancel()
            throws XMPPException
Description copied from class: TransportResolver
Cancel any asynchronous resolution operation.

Specified by:
cancel in class TransportResolver
Throws:
XMPPException