iaik.xkms
Interface StatusResult

All Superinterfaces:
XMessageAbstractType, XResultType

public interface StatusResult
extends XResultType

Status of a pending request.

[134] The <StatusResult> element returns the status of a pending request. In the case of a non-compound request, the status is indicated in the ResultMajor attribute. For a compound request, the status of each of the inner compound requests is indicated with three different optional attributes, defined here below.

[134a] The StatusResultType inherits the element and attributes of XResultType and contains the following additional attributes for reporting the status of compound requests:
Success [Optional]
In the case of a compound request the number of inner compound operations that completed with status Success.
Failure [Optional]
In the case of a compound request the number of inner compound operations that completed with status other than Success.
Pending [Optional]
In the case of a compound request the number of inner compound operations that are still pending.


Method Summary
 int getFailure()
          Gets the number of failed inner requests.
 int getPending()
          Gets the number of pending inner requests
 int getSuccess()
          Gets the number of successful inner requests.
 void setFailure(int count)
          Sets the number of failed inner requests.
 void setPending(int count)
          Sets the number of pending inner requests.
 void setSuccess(int count)
          Sets the number of successful inner requests.
 
Methods inherited from interface XResultType
addStandardReplyData, getRequestId, getRequestSignatureValue, getResultMajor, getResultMinor, setRequestId, setRequestSignatureValue, setResultMajor, setResultMinor
 
Methods inherited from interface XMessageAbstractType
addDefaults, addOpaqueClientData, clearOpaqueClientData, getId, getMessageName, getNonce, getOpaqueClientData, getService, getSignatureCertificate, hasSignature, isValid, setId, setNonce, setService, setSignature, toString
 

Method Detail

getSuccess

int getSuccess()
Gets the number of successful inner requests.

This element is optional, if it is not set result is -1.

Returns:
number of successful inner requests, or -1 if not set.

setSuccess

void setSuccess(int count)
Sets the number of successful inner requests.

Parameters:
count - new value

getFailure

int getFailure()
Gets the number of failed inner requests.

This element is optional, if it is not set result is -1.

Returns:
number of failed inner requests, or -1 if not set.

setFailure

void setFailure(int count)
Sets the number of failed inner requests.

Parameters:
count - new value

getPending

int getPending()
Gets the number of pending inner requests

This element is optional, if it is not set result is -1.

Returns:
number of pending inner requests, or -1 if not set.

setPending

void setPending(int count)
Sets the number of pending inner requests.

Parameters:
count - new value