|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nhindirect.dns.DNSResponder
public abstract class DNSResponder
Abstract DNSResponder for DNS requests. It implements common methods for calling the DNS store and handling error conditions. Protocol specific (UDP, TCP, etc) messaging handling is implemented in concrete implementations.
| Constructor Summary | |
|---|---|
DNSResponder(DNSServerSettings settings,
DNSStore store)
Creates a DNS responder using the provided settings and DNS store. |
|
| Method Summary | |
|---|---|
org.xbill.DNS.Message |
processRequest(byte[] rawMessage)
Processes a DNS request and returns a DNS response. |
org.xbill.DNS.Message |
processRequest(org.xbill.DNS.Message request)
Processes a DNS request and returns a DNS response. |
abstract void |
start()
Starts the responder. |
abstract void |
stop()
Stops the responder. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DNSResponder(DNSServerSettings settings,
DNSStore store)
throws DNSException
start() is called.
settings - The DNS server settings.store - The DNS store that holds the DNS record information.
DNSException| Method Detail |
|---|
public abstract void start()
throws DNSException
DNSException
public abstract void stop()
throws DNSException
DNSException
public org.xbill.DNS.Message processRequest(byte[] rawMessage)
throws DNSException
rawMessage - The raw DNS wire protocol format of the request.
DNSExceptionpublic org.xbill.DNS.Message processRequest(org.xbill.DNS.Message request)
request - The DNS request message.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||