Class CIMResponse
- java.lang.Object
-
- org.sblim.cimclient.internal.cimxml.CIMMessage
-
- org.sblim.cimclient.internal.cimxml.CIMResponse
-
public class CIMResponse extends CIMMessage
Represent a CIMReponse message.
-
-
Field Summary
Fields Modifier and Type Field Description protected WBEMException
iError
protected java.util.Vector<java.lang.Object>
iParamValue
protected java.util.Vector<CIMResponse>
iResponses
protected java.util.Vector<java.lang.Object>
iReturnValue
-
Fields inherited from class org.sblim.cimclient.internal.cimxml.CIMMessage
iCimVersion, iDoc, iDtdVersion, iElements, iId, iIsCIMExport, iIsRequest, iIsSimple, iMethod, iProtocolVersion
-
-
Constructor Summary
Constructors Constructor Description CIMResponse()
Constructs a CIMResponse object.CIMResponse(java.lang.String pCimVersion, java.lang.String pDtdVersion, java.lang.String pId, java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addParamValue(java.lang.Object o)
addParamValuevoid
addParamValue(java.util.Vector<java.lang.Object> v)
addParamValuevoid
addResponse(CIMResponse response)
addResponsevoid
addReturnValue(java.lang.Object o)
addReturnValuevoid
checkError()
Verify the status code for this CIMResponse.java.util.List<CIMResponse>
getAllResponses()
getAllResponsesWBEMException
getException()
getExceptionCIMResponse
getFirstResponse()
getFirstResponsejava.util.List<java.lang.Object>
getFirstReturnValue()
getFirstReturnValuejava.util.List<java.lang.Object>
getParamValues()
getParamValuesboolean
isSuccessful()
isSuccessfulvoid
setError(WBEMException error)
setErrorvoid
setParamValue(java.util.Vector<java.lang.Object> paramValue)
setParamValuevoid
setReturnValue(java.util.Vector<java.lang.Object> returnValue)
setReturnValue-
Methods inherited from class org.sblim.cimclient.internal.cimxml.CIMMessage
getCIMVersion, getDTDVersion, getId, getProtocolVersion, isCIMExport, isCIMOperation, setCIMVersion, setDTDVersion, setId, setIsRequest, setMethod
-
-
-
-
Field Detail
-
iResponses
protected java.util.Vector<CIMResponse> iResponses
-
iError
protected WBEMException iError
-
iReturnValue
protected java.util.Vector<java.lang.Object> iReturnValue
-
iParamValue
protected java.util.Vector<java.lang.Object> iParamValue
-
-
Constructor Detail
-
CIMResponse
public CIMResponse()
Constructs a CIMResponse object.
-
CIMResponse
public CIMResponse(java.lang.String pCimVersion, java.lang.String pDtdVersion, java.lang.String pId, java.lang.String pMethod)
Constructs a CIMResponse object with the specified CIMVersion, DTDVersion and method.- Parameters:
pCimVersion
-pDtdVersion
-pId
-pMethod
-
-
CIMResponse
public CIMResponse(CIMRequest request)
Constructs a CIM Response message from a given CIM Request.- Parameters:
request
-
-
-
Method Detail
-
addParamValue
public void addParamValue(java.lang.Object o)
addParamValue- Parameters:
o
-
-
addParamValue
public void addParamValue(java.util.Vector<java.lang.Object> v)
addParamValue- Parameters:
v
-
-
addResponse
public void addResponse(CIMResponse response)
addResponse- Parameters:
response
-
-
addReturnValue
public void addReturnValue(java.lang.Object o)
addReturnValue- Parameters:
o
-
-
checkError
public void checkError() throws WBEMException
Verify the status code for this CIMResponse.- Throws:
WBEMException
- if the status code is other than success.
-
getAllResponses
public java.util.List<CIMResponse> getAllResponses()
getAllResponses- Returns:
- List
-
getException
public WBEMException getException()
getException- Returns:
- WBEMException
-
isSuccessful
public boolean isSuccessful()
isSuccessful- Returns:
- boolean
-
getFirstResponse
public CIMResponse getFirstResponse()
getFirstResponse- Returns:
- CIMResponse
-
getParamValues
public java.util.List<java.lang.Object> getParamValues()
getParamValues- Returns:
- List
-
getFirstReturnValue
public java.util.List<java.lang.Object> getFirstReturnValue()
getFirstReturnValue- Returns:
- List
-
setError
public void setError(WBEMException error)
setError- Parameters:
error
-
-
setParamValue
public void setParamValue(java.util.Vector<java.lang.Object> paramValue)
setParamValue- Parameters:
paramValue
-
-
setReturnValue
public void setReturnValue(java.util.Vector<java.lang.Object> returnValue)
setReturnValue- Parameters:
returnValue
-
-
-