rabbit.dns
Interface DNSHandler

All Known Implementing Classes:
DNSJavaHandler, DNSSunHandler

public interface DNSHandler

A DNS handler.

Author:
Robert Olofsson

Method Summary
 java.net.InetAddress getInetAddress(java.lang.String host)
          Look up an internet address.
 java.net.InetAddress getInetAddress(java.net.URL url)
          Look up an internet address.
 void setup(SProperties config)
          Do any neccessary setup.
 

Method Detail

setup

void setup(SProperties config)
Do any neccessary setup.

Parameters:
config - the properties for this handler

getInetAddress

java.net.InetAddress getInetAddress(java.net.URL url)
                                    throws java.net.UnknownHostException
Look up an internet address.

Parameters:
url - the url to get the host from
Returns:
the InetAddress of the url
Throws:
java.net.UnknownHostException - if the lookup fails

getInetAddress

java.net.InetAddress getInetAddress(java.lang.String host)
                                    throws java.net.UnknownHostException
Look up an internet address.

Parameters:
host - the name of the host to lookup
Returns:
the InetAddress for the given host
Throws:
java.net.UnknownHostException - if the lookup fails