|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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 |
public static final int SC_PENDING
public static final int SC_SUCCESS
public static final int SC_FAILED
public static final int RC_NOT_APPLICABLE
public static final int RC_GENERAL_SERVER_ERROR
| Method Detail |
public void setStatus(int status)
status - the status codepublic int getStatus()
public void setReason(int reason)
reason - the response's reason codepublic int getReason()
public void setMessage(String message)
message - the response's messagepublic String getMessage()
public void setServerAddr(String serverAddr)
serverAddr - the Server's addresspublic String getServerAddr()
public void setServerPort(int serverPort)
serverPort - the Server's portpublic int getServerPort()
public void setServerName(String serverName)
serverName - the Server's namepublic String getServerName()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||