public final class ProxyQueryEvent extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ProxyQueryEvent.QueryType
Represents the type of query the client is asking for.
|
| Constructor and Description |
|---|
ProxyQueryEvent(ProxyQueryEvent.QueryType queryType,
InetAddress querierAddress,
QueryResponse response)
Creates a new event.
|
| Modifier and Type | Method and Description |
|---|---|
InetAddress |
getQuerierAddress()
Get the address of the client that sent this query.
|
ProxyQueryEvent.QueryType |
getQueryType()
Returns the kind of query the remote client is performing.
|
QueryResponse |
getResponse()
Returns the current query response.
|
void |
setResponse(QueryResponse response)
Sets a new query response.
|
String |
toString() |
public ProxyQueryEvent(ProxyQueryEvent.QueryType queryType, InetAddress querierAddress, QueryResponse response)
queryType - the type of queryquerierAddress - the remote address for the queryresponse - the current query responsepublic ProxyQueryEvent.QueryType getQueryType()
public InetAddress getQuerierAddress()
public QueryResponse getResponse()
public void setResponse(QueryResponse response)
response - the new non-null query response