org.sblim.wbem.xml

Class CIMResponse


public class CIMResponse
extends CIMMessage

Represent a CIMReponse message.

Field Summary

protected CIMException
iError
protected Vector
iParamValue
protected Vector
iResponses
protected Vector
iReturnValue

Fields inherited from class org.sblim.wbem.xml.CIMMessage

iCimVersion, iDoc, iDtdVersion, iElements, iId, iIsCIMExport, iIsRequest, iIsSimple, iMethod, iProtocolVersion

Constructor Summary

CIMResponse()
Constructs a CIMResponse object.
CIMResponse(String cimVersion, String dtdVersion, String method)
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

void
addParamValue(Object o)
Adds a
void
addParamValue(Vector v)
void
addResponse(CIMResponse response)
void
addReturnValue(Object o)
void
checkError()
Verify the status code for this CIMResponse.
Vector
getAllResponses()
CIMException
getException()
CIMResponse
getFirstResponse()
Vector
getFirstReturnValue()
Vector
getParamValues()
boolean
isSuccessul()
void
setError(CIMException error)
void
setParamValue(Vector paramValue)
void
setReturnValue(Vector returnValue)

Methods inherited from class org.sblim.wbem.xml.CIMMessage

getCIMVersion, getDTDVersion, getId, getProtocolVersion, isCIMExport, isCIMOperation, setCIMVersion, setDTDVersion, setIsRequest, setMethod

Field Details

iError

protected CIMException iError

iParamValue

protected Vector iParamValue

iResponses

protected Vector iResponses

iReturnValue

protected Vector iReturnValue

Constructor Details

CIMResponse

public CIMResponse()
Constructs a CIMResponse object.

CIMResponse

public CIMResponse(String cimVersion,
                   String dtdVersion,
                   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 Details

addParamValue

public void addParamValue(Object o)
Adds a
Parameters:
o -

addParamValue

public void addParamValue(Vector v)

addResponse

public void addResponse(CIMResponse response)

addReturnValue

public void addReturnValue(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 Vector getAllResponses()

getException

public CIMException getException()

getFirstResponse

public CIMResponse getFirstResponse()

getFirstReturnValue

public Vector getFirstReturnValue()

getParamValues

public Vector getParamValues()

isSuccessul

public boolean isSuccessul()

setError

public void setError(CIMException error)

setParamValue

public void setParamValue(Vector paramValue)

setReturnValue

public void setReturnValue(Vector returnValue)

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