DNSJavaHandler (RabbIT/4)
Date: 2009-12-20

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## rabbit.dns
Class DNSJavaHandler

    java.lang.Object
      rabbit.dns.DNSJavaHandler

All Implemented Interfaces:
  DNSHandler

    public class DNSJavaHandler

extends Object
implements DNSHandler

A DNS handler using the dnsjava packages

Author:
  Robert Olofsson

Constructor Summary
`DNSJavaHandler()`

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.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### DNSJavaHandler

    public DNSJavaHandler()

Method Detail

### setup

    public void setup(SProperties config)

  Do any neccessary setup.

  Specified by:
    `setup` in interface `DNSHandler`
  Parameters:
    `config` - the properties for this handler

### 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`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD