gov.nist.javax.sip
Class DefaultAddressResolver
java.lang.Object
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)
Method Summary |
Hop |
resolveAddress(Hop inputAddress)
Do a name lookup and resolve the given IP address. |
DefaultAddressResolver
public DefaultAddressResolver()
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 ).
A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Submit a bug report or feature request.