NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

gov.nist.core.net
Interface AddressResolver

All Known Implementing Classes:
DefaultAddressResolver

public interface AddressResolver

An interface that allows you to customize address lookup. The user can implement this interface to do DNS lookups or other lookup schemes and register it with the stack. The default implementation of the address resolver does nothing more than just return back the Hop that it was passed (fixing up the port if necessary). However, this behavior can be overriden. To override implement this interface and register it with the stack using SipStackExt.setAddressResolver(AddressResolver). This interface will be incorporated into version 2.0 of the JAIN-SIP Specification.

Since:
2.0
Author:
M. Ranganathan

Method Summary
 Hop resolveAddress(Hop hop)
          Do a name lookup and resolve the given IP address.
 

Method Detail

resolveAddress

Hop resolveAddress(Hop hop)
Do a name lookup and resolve the given IP address. The default implementation is just an identity mapping (returns the argument).

Parameters:
hop - - an incoming Hop containing a potenitally unresolved address.
Returns:
a new hop ( if the address is recomputed ) or the original hop if this is just an identity mapping ( the default behavior ).

NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Submit a bug report or feature request.