rabbit.proxy
Class DNSSunHandler

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

public class DNSSunHandler
extends java.lang.Object
implements DNSHandler

A DNS handler using the standard java packages.


Constructor Summary
DNSSunHandler()
           
 
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(Proxy proxy)
          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(Proxy proxy)
Do any neccessary setup.

Specified by:
setup in interface DNSHandler
Parameters:
proxy - the Proxy to handle dns requests for.

getInetAddress

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

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

getInetAddress

public java.net.InetAddress getInetAddress(java.lang.String host)
                                    throws java.net.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:
java.net.UnknownHostException