public class DNSRequest
extends java.lang.Object
Constructor and Description |
---|
DNSRequest(long handle)
Constructor storing the pointer/address to the underlying native object
|
Modifier and Type | Method and Description |
---|---|
long |
dnsRequestHandle()
Gets DNS handle
|
void |
dropStatusEventListener(DNSRequestEventsHandler value)
Drop dns request events listener
|
protected void |
finalize()
Ensures the underlying native object destruction
|
long |
handle()
Gets the pointer/address to the underlying native object
|
java.lang.String |
query()
Gets DNS Query
|
void |
setStatusEventListener(DNSRequestEventsHandler value)
Set dns request events listener
|
Result |
start(java.lang.String query)
Start a DNS request
|
public DNSRequest(long handle)
handle
- Pointer/address to the underlying native objectpublic long handle()
protected void finalize()
finalize
in class java.lang.Object
public long dnsRequestHandle()
public java.lang.String query()
public Result start(java.lang.String query)
query
- The host name to be requestedResult
public void setStatusEventListener(DNSRequestEventsHandler value)
value
- The dns request event handlerDNSRequestEventsHandler
public void dropStatusEventListener(DNSRequestEventsHandler value)
value
- The dns request event handlerDNSRequestEventsHandler