rabbit.dns
Interface DNSHandler

All Known Implementing Classes:
DNSJavaHandler, DNSSunHandler

public interface DNSHandler

A DNS handler.

Author:
Robert Olofsson

Method Summary
 InetAddress getInetAddress(String host)
          Look up an internet address.
 InetAddress getInetAddress(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

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

Parameters:
url - the url to get the host from
Throws:
UnknownHostException

getInetAddress

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

Parameters:
host - the name of the host to lookup
Throws:
UnknownHostException