Interface ProxyQueryEvent
-
- All Superinterfaces:
Event
- All Known Implementing Classes:
ProxyQueryEventImpl
public interface ProxyQueryEvent extends Event
This event is fired if proxy is getting queried over GS4 Query protocol.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classProxyQueryEvent.QueryTypeRepresents the type of query the client is asking for.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InetAddressqueryingAddress()Get the address of the client that sent this query.QueryResponseresponse()Returns the current query response.voidsetResponse(QueryResponse response)Sets a new query response.ProxyQueryEvent.QueryTypetype()Returns the kind of query the remote client is performing.
-
-
-
Method Detail
-
type
ProxyQueryEvent.QueryType type()
Returns the kind of query the remote client is performing.- Returns:
- query type
-
queryingAddress
InetAddress queryingAddress()
Get the address of the client that sent this query.- Returns:
- querier address
-
response
QueryResponse response()
Returns the current query response.- Returns:
- the current query response
-
setResponse
void setResponse(QueryResponse response)
Sets a new query response.- Parameters:
response- the new non-null query response
-
-