|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PingResponse
Interface for a Response object that is used to make responses using the Ping protocol
| Field Summary | |
|---|---|
static int |
RC_GENERAL_SERVER_ERROR
Reason Code: General Server Error, probably due to a misconfiguration. |
static int |
RC_NOT_APPLICABLE
Reason Code: Not Applicable (because ping request succeeded) |
static int |
SC_FAILED
Status Code indicating that ping request failed |
static int |
SC_PENDING
Status Code indicating that ping request is in progress. |
static int |
SC_SUCCESS
Status Code indicating that ping request succeeded |
| Method Summary | |
|---|---|
String |
getMessage()
Get the response's message |
int |
getReason()
Get the reason code |
String |
getServerAddr()
Get the server's address |
String |
getServerName()
Get the server's name |
int |
getServerPort()
Get the server's port |
int |
getStatus()
Get the status code |
void |
setMessage(String message)
Set the Response's message |
void |
setReason(int reason)
Set the reason code |
void |
setServerAddr(String serverAddr)
Set the Server's address |
void |
setServerName(String serverName)
Set the Server's name |
void |
setServerPort(int serverPort)
Set the Server's port |
void |
setStatus(int status)
Set the status code |
| Field Detail |
|---|
static final int SC_PENDING
static final int SC_SUCCESS
static final int SC_FAILED
static final int RC_NOT_APPLICABLE
static final int RC_GENERAL_SERVER_ERROR
| Method Detail |
|---|
void setStatus(int status)
status - the status codeint getStatus()
void setReason(int reason)
reason - the response's reason codeint getReason()
void setMessage(String message)
message - the response's messageString getMessage()
void setServerAddr(String serverAddr)
serverAddr - the Server's addressString getServerAddr()
void setServerPort(int serverPort)
serverPort - the Server's portint getServerPort()
void setServerName(String serverName)
serverName - the Server's nameString getServerName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||