org.sblim.wbem.xml
Class CIMResponse

java.lang.Object
  extended by org.sblim.wbem.xml.CIMResponse

public class CIMResponse
extends java.lang.Object

Represent a CIMReponse message.


Field Summary
protected  java.lang.String iCimVersion
           
protected  org.w3c.dom.Document iDoc
           
protected  java.lang.String iDtdVersion
           
protected  java.util.Hashtable iElements
           
protected  CIMException iError
           
protected  java.lang.String iId
           
protected  boolean iIsCIMExport
           
protected  boolean iIsRequest
           
protected  boolean iIsSimple
           
protected  java.lang.String iMethod
           
protected  java.util.Vector iParamValue
           
protected  java.lang.String iProtocolVersion
           
protected  java.util.Vector iResponses
           
protected  java.util.Vector iReturnValue
           
 
Constructor Summary
CIMResponse()
          Constructs a CIMResponse object.
CIMResponse(CIMRequest request)
          Constructs a CIM Response message from a given CIM Request.
CIMResponse(java.lang.String cimVersion, java.lang.String dtdVersion, java.lang.String method)
          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)
           
 void addResponse(CIMResponse response)
           
 void addReturnValue(java.lang.Object o)
           
 void checkError()
          Verify the status code for this CIMResponse.
 java.util.Vector getAllResponses()
           
 java.lang.String getCIMVersion()
           
 java.lang.String getDTDVersion()
           
 CIMException getException()
           
 CIMResponse getFirstResponse()
           
 java.util.Vector getFirstReturnValue()
           
 java.lang.String getId()
           
 java.util.Vector getParamValues()
           
 java.lang.String getProtocolVersion()
           
 boolean isCIMExport()
           
 boolean isCIMOperation()
           
 boolean isSuccessul()
           
 void setCIMVersion(java.lang.String pCimVersion)
           
 void setDTDVersion(java.lang.String pDtdVersion)
           
 void setError(CIMException error)
           
 void setIsRequest(boolean pValue)
           
 void setMethod(java.lang.String pMethod)
           
 void setParamValue(java.util.Vector paramValue)
           
 void setReturnValue(java.util.Vector returnValue)
           
 
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 CIMException iError

iReturnValue

protected java.util.Vector iReturnValue

iParamValue

protected java.util.Vector iParamValue

iDoc

protected org.w3c.dom.Document iDoc

iElements

protected java.util.Hashtable iElements

iCimVersion

protected java.lang.String iCimVersion

iDtdVersion

protected java.lang.String iDtdVersion

iId

protected java.lang.String iId

iProtocolVersion

protected java.lang.String iProtocolVersion

iMethod

protected java.lang.String iMethod

iIsCIMExport

protected boolean iIsCIMExport

iIsSimple

protected boolean iIsSimple

iIsRequest

protected boolean iIsRequest
Constructor Detail

CIMResponse

public CIMResponse()
Constructs a CIMResponse object.


CIMResponse

public CIMResponse(java.lang.String cimVersion,
                   java.lang.String dtdVersion,
                   java.lang.String method)
Constructs a CIMResponse object with the specified CIMVersion, DTDVersion and method.

Parameters:
cimVersion -
dtdVersion -
method -

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)

addResponse

public void addResponse(CIMResponse response)

addReturnValue

public void addReturnValue(java.lang.Object o)

checkError

public void checkError()
                throws CIMException
Verify the status code for this CIMResponse.

Throws:
CIMException - if the status code is other than success.

getAllResponses

public java.util.Vector getAllResponses()

getException

public CIMException getException()

isSuccessul

public boolean isSuccessul()

getFirstResponse

public CIMResponse getFirstResponse()

getParamValues

public java.util.Vector getParamValues()

getFirstReturnValue

public java.util.Vector getFirstReturnValue()

setError

public void setError(CIMException error)

setParamValue

public void setParamValue(java.util.Vector paramValue)

setReturnValue

public void setReturnValue(java.util.Vector returnValue)

getCIMVersion

public java.lang.String getCIMVersion()

getDTDVersion

public java.lang.String getDTDVersion()

isCIMOperation

public boolean isCIMOperation()

isCIMExport

public boolean isCIMExport()

setMethod

public void setMethod(java.lang.String pMethod)

setCIMVersion

public void setCIMVersion(java.lang.String pCimVersion)

setDTDVersion

public void setDTDVersion(java.lang.String pDtdVersion)

setIsRequest

public void setIsRequest(boolean pValue)

getId

public java.lang.String getId()

getProtocolVersion

public java.lang.String getProtocolVersion()


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