rabbit.dns
Class DNSSunHandler

java.lang.Object
  extended by rabbit.dns.DNSSunHandler
All Implemented Interfaces:
DNSHandler

public class DNSSunHandler
extends Object
implements DNSHandler

A DNS handler using the standard java packages.

Author:
Robert Olofsson

Constructor Summary
DNSSunHandler()
           
 
Method Summary
 InetAddress getInetAddress(String host)
          Look up an internet address.
 InetAddress getInetAddress(URL url)
          Look up an internet address.
 void setup(SProperties config, Logger logger)
          Do any neccessary setup.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DNSSunHandler

public DNSSunHandler()
Method Detail

setup

public void setup(SProperties config,
                  Logger logger)
Do any neccessary setup.

Specified by:
setup in interface DNSHandler
Parameters:
config - the properties for this handler
logger - the Logger to use.

getInetAddress

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

Specified by:
getInetAddress in interface DNSHandler
Parameters:
url - the url to get the host from
Throws:
UnknownHostException

getInetAddress

public InetAddress getInetAddress(String host)
                           throws UnknownHostException
Description copied from interface: DNSHandler
Look up an internet address.

Specified by:
getInetAddress in interface DNSHandler
Parameters:
host - the name of the host to lookup
Throws:
UnknownHostException