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
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 ).
A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Submit a bug report or feature request.