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

gov.nist.javax.sip
Class DefaultAddressResolver

java.lang.Object
  extended by gov.nist.javax.sip.DefaultAddressResolver
All Implemented Interfaces:
AddressResolver

public class DefaultAddressResolver
extends Object
implements AddressResolver

This is the default implementation of the AddressResolver. The AddressResolver is a NIST-SIP specific feature. The address resolover is consulted to convert a Hop into a meaningful address. The default implementation is a passthrough. It only gets involved in setting the default port. However, you can register your own AddressResolver implementation Note that The RI checks incoming via headers for resolving the sentBy field. If you want to set it to some address that cannot be resolved you should register an AddressResolver with the stack. This feature is also useful for DNS SRV lookup which is not implemented by the RI at present.

Since:
1.2
Version:
1.2
Author:
M. Ranganathan
See Also:
SIPTransactionStack.setAddressResolver(AddressResolver)

Constructor Summary
DefaultAddressResolver()
           
 
Method Summary
 Hop resolveAddress(Hop inputAddress)
          Do a name lookup and resolve the given IP address.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAddressResolver

public DefaultAddressResolver()
Method Detail

resolveAddress

public Hop resolveAddress(Hop inputAddress)
Description copied from interface: AddressResolver
Do a name lookup and resolve the given IP address. The default implementation is just an identity mapping (returns the argument).

Specified by:
resolveAddress in interface AddressResolver
Parameters:
inputAddress - - 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.