|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.itim.remoteservices.provider.RequestStatus
Class encapsulates a response from a remote resource, including the status and any message.
Field Summary | |
---|---|
static int |
AUTHENTICATION_ERROR
Reason: Authentication error type for an unsuccessful request |
static int |
COMMUNICATION_ERROR
Reason: Communications error type for an unsuccessful request |
static int |
CONFIGURATION_ERROR
Reason: Communications error type for an unsuccessful request |
static int |
INVALID_SEARCH_CONTROLS_ERROR
Reason: Error type for an unsuccessful request indicating that the search controls specified in the request was invalid. |
static int |
INVALID_SEARCH_FILTER_ERROR
Reason: Error type for an unsuccessful request indicating that the search filter specified in the request was invalid. |
static int |
NAME_ALREADY_BOUND_ERROR
Reason: Error type for an unsuccessful request indicating that the name requested was already in use. |
static int |
NAME_INVALID_ERROR
Reason: Error type for an unsuccessful request indicating that the format of the name of the entity was invalid. |
static int |
NAME_NOT_FOUND_ERROR
Reason: Error type for an unsuccessful request indicating that the name requested was not found. |
static int |
NO_SUCH_ATTRIBUTE_ERROR
Reason: Error type for an unsuccessful request indicating that there was no such attribute matching an attribute specified in the request. |
static int |
OPERATION_NOT_SUPPORTED_ERROR
Reason: Error type for an unsuccessful request indicating that the operation requested was not implemented. |
static int |
PENDING
Status: The request has been made but a response is pending. |
static int |
PENDING_ASYNCHRONOUS
Reason: Request Pending because resource is Asynchronous |
static int |
PENDING_RECON_IN_PROGRESS
Reason: Request Pending because resource has exclusive recon in progress |
static int |
PENDING_RESOURCE_FAILED
Reason: Request Pending because resource has failed |
static int |
PROCESSING_ERROR
Reason: Processing error type for an unsuccessful request |
static int |
SIZE_LIMIT_EXCEEDED_ERROR
Reason: Error type for an unsuccessful request indicating that the search matched more results than could be returned. |
static int |
SUCCESSFUL
Status: The request was successful. |
static int |
SUCCESSFUL_WARNING
Status: The request was partially successful. |
static int |
TIME_LIMIT_EXCEEDED_ERROR
Reason: Error type for an unsuccessful request indicating that the time limited was exceeded for the resource to respond. |
static int |
UNSUCCESSFUL
Status: The request failed. |
static int |
USER_ABORTED
Reason: Error type for an unsuccessful request indicating that the search controls specified in the request was invalid. |
Constructor Summary | |
---|---|
RequestStatus(int status)
Construct with a status code. |
|
RequestStatus(int status,
int reason,
java.lang.String reasonMessage)
Construct with a status code and a text message. |
|
RequestStatus(int status,
int reason,
java.lang.String reasonMessageId,
java.lang.Object[] tokens)
Construct with a status code, message key & tokens. |
|
RequestStatus(int status,
java.lang.String reasonMessage)
Construct with a status code and a text message. |
|
RequestStatus(RequestStatus requestStatus)
Construct a RequestStatus from another, making an exact copy. |
Method Summary | |
---|---|
void |
addNotChangedAttributes(AttributeValue unchangedAttribute)
Adds an attribute that was not able to be added / updated on the remote resouce. |
void |
addReasonMessageArg(java.lang.String arg)
Adds a reason message token for internationalization |
boolean |
failed()
Accessor method for whether the status is unsuccessful |
AttributeValues |
getNotChangedAttributes()
Gets a map of attributes that were not able to be added / updated on the remote resouce. |
int |
getReason()
Gets the reason for an unsuccessful response from the remote resource. |
java.lang.String |
getReasonAsString()
Return reason code as a String, for log messages |
java.lang.String |
getReasonMessage()
Gets a possible warning or error message from the remote resource |
java.util.Collection |
getReasonMessageArgs()
The arguments for the reason message are used for internationalization |
AttributeValues |
getReturnAttributes()
Gets a list of the return (output) attributes from the remote request. |
int |
getStatus()
Gets the status of the response from the remote resource |
java.lang.String |
getStatusAsString()
Return status code as a String, for log messages |
java.lang.String |
getXMLFormattedMessage()
Gets error message, xml formatted. |
boolean |
pending()
Accessor method for whether the status is pending |
void |
setReason(int reason)
Sets the reason for an unsuccessful response from the remote resource. |
void |
setReasonMessage(java.lang.String reasonMessage)
Sets a possible warning or error message from the remote resource |
void |
setReasonMessageArgs(java.util.Collection args)
The arguments for the reason message are used for internationalization |
void |
setReasonMessageArgs(java.lang.Object[] args)
The arguments for the reason message are used for internationalization |
void |
setReturnAttributes(AttributeValues returnAttributes)
Sets a list of the output attributes from the remote request. |
void |
setStatus(int status)
Sets the status of the response from the remote resource |
boolean |
succeeded()
Accessor method for whether the status is successful or pending |
java.lang.String |
toString()
Override method from java.lang.Object |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int PENDING
public static final int SUCCESSFUL
public static final int UNSUCCESSFUL
public static final int SUCCESSFUL_WARNING
public static final int PENDING_ASYNCHRONOUS
public static final int PENDING_RECON_IN_PROGRESS
public static final int PENDING_RESOURCE_FAILED
public static final int PROCESSING_ERROR
public static final int COMMUNICATION_ERROR
public static final int CONFIGURATION_ERROR
public static final int AUTHENTICATION_ERROR
public static final int NAME_INVALID_ERROR
public static final int OPERATION_NOT_SUPPORTED_ERROR
public static final int NO_SUCH_ATTRIBUTE_ERROR
public static final int NAME_NOT_FOUND_ERROR
public static final int INVALID_SEARCH_FILTER_ERROR
public static final int SIZE_LIMIT_EXCEEDED_ERROR
public static final int TIME_LIMIT_EXCEEDED_ERROR
public static final int NAME_ALREADY_BOUND_ERROR
public static final int INVALID_SEARCH_CONTROLS_ERROR
public static final int USER_ABORTED
Constructor Detail |
public RequestStatus(int status)
status
- Possible values are PENDING, SUCCESSFUL, UNSUCCESSFUL, SUCCESSFUL_WARNINGpublic RequestStatus(int status, java.lang.String reasonMessage)
status
- Possible values are PENDING, SUCCESSFUL, UNSUCCESSFUL, SUCCESSFUL_WARNINGreasonMessage
- A message accompanying an unsuccessful or conditionally successful response.public RequestStatus(int status, int reason, java.lang.String reasonMessage)
status
- Possible values are PENDING, SUCCESSFUL, UNSUCCESSFUL, SUCCESSFUL_WARNINGreason
- the reason for an unsuccessful response
Possible values are PROCESSING_ERROR, COMMUNICATION_ERROR,
AUTHENTICATION_ERROR, NAME_INVALID_ERROR, NAME_INVALID_ERROR,
OPERATION_NOT_SUPPORTED_ERROR, NO_SUCH_ATTRIBUTE_ERROR,
NAME_NOT_FOUND_ERROR, INVALID_SEARCH_FILTER_ERROR, SIZE_LIMIT_EXCEEDED_ERROR,
TIME_LIMIT_EXCEEDED_ERROR.reasonMessage
- A message accompanying an unsuccessful or conditionally successful response.public RequestStatus(int status, int reason, java.lang.String reasonMessageId, java.lang.Object[] tokens)
status
- Possible values are PENDING, SUCCESSFUL, UNSUCCESSFUL, SUCCESSFUL_WARNINGreason
- the reason for an unsuccessful response
Possible values are PROCESSING_ERROR, COMMUNICATION_ERROR,
AUTHENTICATION_ERROR, NAME_INVALID_ERROR, NAME_INVALID_ERROR,
OPERATION_NOT_SUPPORTED_ERROR, NO_SUCH_ATTRIBUTE_ERROR,
NAME_NOT_FOUND_ERROR, INVALID_SEARCH_FILTER_ERROR, SIZE_LIMIT_EXCEEDED_ERROR,
TIME_LIMIT_EXCEEDED_ERROR.reasonMessageId
- A message Idtokens
- token list for reasonMessageId/null (stored as ReasonMessageArg's)public RequestStatus(RequestStatus requestStatus)
requestStatus
- Copies the status and message from this RequestStatus objectMethod Detail |
public int getStatus()
public java.lang.String getStatusAsString()
public void setStatus(int status)
status
- One of PENDING, SUCCESSFUL, UNSUCCESSFUL, SUCCESSFUL_WARNINGpublic int getReason()
public java.lang.String getReasonAsString()
public void setReason(int reason)
reason
- the reason for an unsuccessful responsepublic java.lang.String getReasonMessage()
public void setReasonMessage(java.lang.String reasonMessage)
reasonMessage
- The error / warning message or an empty string if there was nonepublic void setReasonMessageArgs(java.util.Collection args)
args
- A collection of Stringspublic void setReasonMessageArgs(java.lang.Object[] args)
args
- An array of Stringspublic void addReasonMessageArg(java.lang.String arg)
arg
- A message token to be substituted into an internationalized messagepublic java.util.Collection getReasonMessageArgs()
public boolean pending()
public boolean failed()
public boolean succeeded()
public AttributeValues getNotChangedAttributes()
public void addNotChangedAttributes(AttributeValue unchangedAttribute)
unchangedAttribute
- The attribute that did not changepublic AttributeValues getReturnAttributes()
public void setReturnAttributes(AttributeValues returnAttributes)
returnAttributes
- An AttributeValues set of output attributes.public java.lang.String getXMLFormattedMessage()
DTD definition of returned format is:
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |