| Modifier and Type | Field and Description |
|---|---|
protected com.google.gson.Gson |
gson |
| Constructor and Description |
|---|
APing() |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
getDefaultPort() |
abstract void |
ping(ServerAddress serverAddress,
IStatusListener statusListener)
Ping the server and call the status listener.
|
protected void |
prepareResponse(ServerAddress serverAddress,
com.google.gson.JsonObject response,
int protocolVersion)
Prepare the response by adding default server information like the host, port, protocol versions and the description.
|
public abstract int getDefaultPort()
public abstract void ping(ServerAddress serverAddress, IStatusListener statusListener)
serverAddress - The server addressstatusListener - The status listenerprotected final void prepareResponse(ServerAddress serverAddress, com.google.gson.JsonObject response, int protocolVersion)
serverAddress - The server addressresponse - The responseprotocolVersion - The protocol version