Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.sip
Class AddressResolverImpl

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.sip.AddressResolverImpl
All Implemented Interfaces:
gov.nist.core.net.AddressResolver

public class AddressResolverImpl
extends Object
implements gov.nist.core.net.AddressResolver

Lookup for SRV records for given host. If nothing found the original host is returned this way when a Socket is constructed another dns lookup will be made for the A record.

Author:
Damian Minkov, Alan Kelly, Emil Ivov

Constructor Summary
AddressResolverImpl()
           
 
Method Summary
 javax.sip.address.Hop resolveAddress(javax.sip.address.Hop inputAddress)
          Implements the actual resolving.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddressResolverImpl

public AddressResolverImpl()
Method Detail

resolveAddress

public javax.sip.address.Hop resolveAddress(javax.sip.address.Hop inputAddress)
Implements the actual resolving. This is where we do the DNS queries.

Specified by:
resolveAddress in interface gov.nist.core.net.AddressResolver
Parameters:
inputAddress - the unresolved Hop that we'd need to find an address for.
Returns:
the newly created Hop containing the resolved destination.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.