|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rabbit.dns.DNSJavaHandler
public class DNSJavaHandler
A DNS handler using the dnsjava packages
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 |
---|
public DNSJavaHandler()
Method Detail |
---|
public void setup(SProperties config)
setup
in interface DNSHandler
config
- the properties for this handlerpublic InetAddress getInetAddress(URL url) throws UnknownHostException
getInetAddress
in interface DNSHandler
url
- the url to get the host from
UnknownHostException
public InetAddress getInetAddress(String host) throws UnknownHostException
DNSHandler
getInetAddress
in interface DNSHandler
host
- the name of the host to lookup
UnknownHostException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |