org.sblim.cimclient.internal.cimxml
Class CIMResponse

java.lang.Object
  extended by org.sblim.cimclient.internal.cimxml.CIMMessage
      extended by org.sblim.cimclient.internal.cimxml.CIMResponse

public class CIMResponse
extends CIMMessage

Represent a CIMReponse message.


Field Summary
protected  WBEMException iError
           
protected  java.util.Vector iParamValue
           
protected  java.util.Vector iResponses
           
protected  java.util.Vector iReturnValue
           
 
Fields inherited from class org.sblim.cimclient.internal.cimxml.CIMMessage
iCimVersion, iDoc, iDtdVersion, iElements, iId, iIsCIMExport, iIsRequest, iIsSimple, iMethod, iProtocolVersion
 
Constructor Summary
CIMResponse()
          Constructs a CIMResponse object.
CIMResponse(CIMRequest request)
          Constructs a CIM Response message from a given CIM Request.
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.
 
Method Summary
 void addParamValue(java.lang.Object o)
          Adds a
 void addParamValue(java.util.Vector v)
          addParamValue
 void addResponse(CIMResponse response)
          addResponse
 void addReturnValue(java.lang.Object o)
          addReturnValue
 void checkError()
          Verify the status code for this CIMResponse.
 java.util.List getAllResponses()
          getAllResponses
 WBEMException getException()
          getException
 CIMResponse getFirstResponse()
          getFirstResponse
 java.util.List getFirstReturnValue()
          getFirstReturnValue
 java.util.List getParamValues()
          getParamValues
 boolean isSuccessul()
          isSuccessul
 void setError(WBEMException error)
          setError
 void setParamValue(java.util.Vector paramValue)
          setParamValue
 void setReturnValue(java.util.Vector returnValue)
          setReturnValue
 
Methods inherited from class org.sblim.cimclient.internal.cimxml.CIMMessage
getCIMVersion, getDTDVersion, getId, getProtocolVersion, isCIMExport, isCIMOperation, setCIMVersion, setDTDVersion, setId, setIsRequest, setMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iResponses

protected java.util.Vector iResponses

iError

protected WBEMException iError

iReturnValue

protected java.util.Vector iReturnValue

iParamValue

protected java.util.Vector 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)
Adds a

Parameters:
o -

addParamValue

public void addParamValue(java.util.Vector 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 getAllResponses()
getAllResponses

Returns:
List

getException

public WBEMException getException()
getException

Returns:
WBEMException

isSuccessul

public boolean isSuccessul()
isSuccessul

Returns:
boolean

getFirstResponse

public CIMResponse getFirstResponse()
getFirstResponse

Returns:
CIMResponse

getParamValues

public java.util.List getParamValues()
getParamValues

Returns:
List

getFirstReturnValue

public java.util.List getFirstReturnValue()
getFirstReturnValue

Returns:
List

setError

public void setError(WBEMException error)
setError

Parameters:
error -

setParamValue

public void setParamValue(java.util.Vector paramValue)
setParamValue

Parameters:
paramValue -

setReturnValue

public void setReturnValue(java.util.Vector returnValue)
setReturnValue

Parameters:
returnValue -


Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.