Class CIMResponse
java.lang.Object
org.sblim.cimclient.internal.cimxml.CIMMessage
org.sblim.cimclient.internal.cimxml.CIMResponse
Represent a CIMReponse message.
-
Field Summary
FieldsFields inherited from class org.sblim.cimclient.internal.cimxml.CIMMessage
iCimVersion, iDoc, iDtdVersion, iElements, iId, iIsCIMExport, iIsRequest, iIsSimple, iMethod, iProtocolVersion -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a CIMResponse object.CIMResponse(String pCimVersion, String pDtdVersion, String pId, String pMethod) Constructs a CIMResponse object with the specified CIMVersion, DTDVersion and method.CIMResponse(CIMRequest request) Constructs a CIM Response message from a given CIM Request. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParamValuevoidaddParamValuevoidaddResponse(CIMResponse response) addResponsevoidaddReturnValuevoidVerify the status code for this CIMResponse.getAllResponsesgetExceptiongetFirstResponsegetFirstReturnValuegetParamValuesbooleanisSuccessfulvoidsetError(WBEMException error) setErrorvoidsetParamValue(Vector<Object> paramValue) setParamValuevoidsetReturnValue(Vector<Object> returnValue) setReturnValueMethods inherited from class org.sblim.cimclient.internal.cimxml.CIMMessage
getCIMVersion, getDTDVersion, getId, getProtocolVersion, isCIMExport, isCIMOperation, setCIMVersion, setDTDVersion, setId, setIsRequest, setMethod
-
Field Details
-
iResponses
-
iError
-
iReturnValue
-
iParamValue
-
-
Constructor Details
-
CIMResponse
public CIMResponse()Constructs a CIMResponse object. -
CIMResponse
Constructs a CIMResponse object with the specified CIMVersion, DTDVersion and method.- Parameters:
pCimVersion-pDtdVersion-pId-pMethod-
-
CIMResponse
Constructs a CIM Response message from a given CIM Request.- Parameters:
request-
-
-
Method Details
-
addParamValue
addParamValue- Parameters:
o-
-
addParamValue
addParamValue- Parameters:
v-
-
addResponse
addResponse- Parameters:
response-
-
addReturnValue
addReturnValue- Parameters:
o-
-
checkError
Verify the status code for this CIMResponse.- Throws:
WBEMException- if the status code is other than success.
-
getAllResponses
getAllResponses- Returns:
- List
-
getException
getException- Returns:
- WBEMException
-
isSuccessful
public boolean isSuccessful()isSuccessful- Returns:
- boolean
-
getFirstResponse
getFirstResponse- Returns:
- CIMResponse
-
getParamValues
getParamValues- Returns:
- List
-
getFirstReturnValue
getFirstReturnValue- Returns:
- List
-
setError
setError- Parameters:
error-
-
setParamValue
setParamValue- Parameters:
paramValue-
-
setReturnValue
setReturnValue- Parameters:
returnValue-
-