gov.nist.core.net
Interface AddressResolver
- All Known Implementing Classes:
- DefaultAddressResolver
- public interface AddressResolver
An interface that allows you to customize address lookup.
This is a NIST-SIP only feature. We dont support DNS SRV lookup directly in NIST-SIP
but we provide a means by which the user can enable it.
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
SIPTransactionStack.setAddressResolver(AddressResolver).
- Author:
- M. Ranganathan
resolveAddress
public 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.