org.jasen.interfaces
Interface InetAddressResolver

All Known Implementing Classes:
JasenInetAddressResolver

public interface InetAddressResolver

Resolves IP addresses to host names and vice versa.

If an instance of this interface is provided to the jASEN engine it will be used. Otherwise the internal InetAddressResolver is used

Author:
Jason Polites
See Also:
JasenInetAddressResolver

Method Summary
 InetAddress[] getAllByName(String host)
          Gets all InetAddress records associated with the host name or IP address provided
 InetAddress getByName(String host)
          Gets the InetAddress associated with the host name or IP address provided
 

Method Detail

getByName

public InetAddress getByName(String host)
                      throws UnknownHostException
Gets the InetAddress associated with the host name or IP address provided

Parameters:
host -
Returns:
The InetAddress object for the given host
Throws:
UnknownHostException

getAllByName

public InetAddress[] getAllByName(String host)
                           throws UnknownHostException
Gets all InetAddress records associated with the host name or IP address provided

Parameters:
host -
Returns:
All the hosts known for the given name or IP
Throws:
UnknownHostException