|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.core.message.AccessStatus
The AccessStatus object is the response object returned from the AccessController object when an access to a connection is attempted.
| Field Summary | |
static int |
RC_ACCESS_CONTROLLER_ERROR
Reason Code: General Server Error, probably due to a misconfiguration. |
static int |
RC_ACCESS_DENIED_AUTHENTICATION_REQUIRED
Reason Code: Access was denied because authentication is required. |
static int |
RC_ACCESS_DENIED_CONFIDENTIALITY_REQUIRED
Reason Code: Access was denied because confidentiality is required. |
static int |
RC_ACCESS_DENIED_UNCONDITIONALLY
Reason Code: Access was unconditionally denied based on a rule. |
static int |
RC_GENERAL_SERVER_ERROR
Reason Code: General Server Error, probably due to a misconfiguration. |
static int |
RC_INVALID_REMOTE_HOST_NAME
Reason Code: The remote host name is not valid. |
static int |
RC_INVALID_REMOTE_IP_ADDRESS
Reason Code: The remote host IP address is not valid. |
static int |
RC_NOT_APPLICABLE
Reason Code: Not Applicable (because access is granted) |
static int |
SC_ACCESS_FAILURE
Status Code indicating that access failed. |
static int |
SC_ACCESS_PENDING
Status Code indicating that access is in progress. |
static int |
SC_ACCESS_SUCCESS
Status Code indicating that access succeeded. |
| Constructor Summary | |
AccessStatus()
Create a default AccessStatus object |
|
AccessStatus(int status,
int reason,
String message)
Create a new AccessStatus object with the given status code, reason code, and message |
|
| Method Summary | |
String |
getMessage()
Get the Message |
int |
getReason()
Get the Reason Code |
int |
getStatus()
Get the Status Code |
void |
setMessage(String message)
Set the Message |
void |
setReason(int reason)
Set the Reason Code |
void |
setStatus(int status)
Set the Status Code |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int SC_ACCESS_PENDING
public static final int SC_ACCESS_SUCCESS
public static final int SC_ACCESS_FAILURE
public static final int RC_NOT_APPLICABLE
public static final int RC_GENERAL_SERVER_ERROR
public static final int RC_INVALID_REMOTE_IP_ADDRESS
public static final int RC_INVALID_REMOTE_HOST_NAME
public static final int RC_ACCESS_DENIED_UNCONDITIONALLY
public static final int RC_ACCESS_DENIED_AUTHENTICATION_REQUIRED
public static final int RC_ACCESS_DENIED_CONFIDENTIALITY_REQUIRED
public static final int RC_ACCESS_CONTROLLER_ERROR
| Constructor Detail |
public AccessStatus()
public AccessStatus(int status,
int reason,
String message)
status - the status codereason - the reason codemessage - the message| Method Detail |
public int getStatus()
public int getReason()
public String getMessage()
public void setStatus(int status)
status - the new Status codepublic void setReason(int reason)
reason - the new Reason codepublic void setMessage(String message)
message - the new message
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||