OW_NAMESPACE::CIMClient Class Reference

This class is a convenience wrapper to make it easier to use all the client pieces together. More...

#include <OW_CIMClient.hpp>

Collaboration diagram for OW_NAMESPACE::CIMClient:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CIMClient (const String &url, const String &ns, const ClientAuthCBIFCRef &authCB=ClientAuthCBIFCRef())
 Constructor.
void setNameSpace (const String &arg)
String getNameSpace () const
void createNameSpace (const String &ns)
 Create a cim namespace.
void deleteNameSpace (const String &ns)
 Delete a specified namespace.
StringArray enumNameSpaceE (WBEMFlags::EDeepFlag deep=WBEMFlags::E_DEEP) OW_DEPRECATED
 Gets a list of the namespaces within the namespace specified by the CIM object path.
void enumNameSpace (StringResultHandlerIFC &result, WBEMFlags::EDeepFlag deep=WBEMFlags::E_DEEP) OW_DEPRECATED
StringArray enumCIM_NamespaceE ()
 Gets a list of the namespaces.
void enumCIM_Namespace (StringResultHandlerIFC &result)
void enumClass (const String &className, CIMClassResultHandlerIFC &result, WBEMFlags::EDeepFlag deep=WBEMFlags::E_SHALLOW, WBEMFlags::ELocalOnlyFlag localOnly=WBEMFlags::E_NOT_LOCAL_ONLY, WBEMFlags::EIncludeQualifiersFlag includeQualifiers=WBEMFlags::E_INCLUDE_QUALIFIERS, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin=WBEMFlags::E_INCLUDE_CLASS_ORIGIN)
 Enumerates the class specified by the CIMObjectPath.
CIMClassEnumeration enumClassE (const String &className, WBEMFlags::EDeepFlag deep=WBEMFlags::E_SHALLOW, WBEMFlags::ELocalOnlyFlag localOnly=WBEMFlags::E_NOT_LOCAL_ONLY, WBEMFlags::EIncludeQualifiersFlag includeQualifiers=WBEMFlags::E_INCLUDE_QUALIFIERS, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin=WBEMFlags::E_INCLUDE_CLASS_ORIGIN)
void enumClassNames (const String &className, StringResultHandlerIFC &result, WBEMFlags::EDeepFlag deep=WBEMFlags::E_DEEP)
 Enumerates the class specified by the CIMObjectPath.
StringEnumeration enumClassNamesE (const String &className, WBEMFlags::EDeepFlag deep=WBEMFlags::E_DEEP)
void enumInstances (const String &className, CIMInstanceResultHandlerIFC &result, WBEMFlags::EDeepFlag deep=WBEMFlags::E_DEEP, WBEMFlags::ELocalOnlyFlag localOnly=WBEMFlags::E_NOT_LOCAL_ONLY, WBEMFlags::EIncludeQualifiersFlag includeQualifiers=WBEMFlags::E_EXCLUDE_QUALIFIERS, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin=WBEMFlags::E_EXCLUDE_CLASS_ORIGIN, const StringArray *propertyList=0)
 Returns all instances (the whole instance and not just the names) belonging to the class specified in the path.
CIMInstanceEnumeration enumInstancesE (const String &className, WBEMFlags::EDeepFlag deep=WBEMFlags::E_DEEP, WBEMFlags::ELocalOnlyFlag localOnly=WBEMFlags::E_NOT_LOCAL_ONLY, WBEMFlags::EIncludeQualifiersFlag includeQualifiers=WBEMFlags::E_EXCLUDE_QUALIFIERS, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin=WBEMFlags::E_EXCLUDE_CLASS_ORIGIN, const StringArray *propertyList=0)
void enumInstanceNames (const String &className, CIMObjectPathResultHandlerIFC &result)
 Returns all instance names belonging to the class specified in the path.
CIMObjectPathEnumeration enumInstanceNamesE (const String &className)
CIMClass getClass (const String &className, WBEMFlags::ELocalOnlyFlag localOnly=WBEMFlags::E_NOT_LOCAL_ONLY, WBEMFlags::EIncludeQualifiersFlag includeQualifiers=WBEMFlags::E_INCLUDE_QUALIFIERS, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin=WBEMFlags::E_INCLUDE_CLASS_ORIGIN, const StringArray *propertyList=0)
 Gets the CIM class for the specified CIM object path.
CIMInstance getInstance (const CIMObjectPath &instanceName, WBEMFlags::ELocalOnlyFlag localOnly=WBEMFlags::E_NOT_LOCAL_ONLY, WBEMFlags::EIncludeQualifiersFlag includeQualifiers=WBEMFlags::E_EXCLUDE_QUALIFIERS, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin=WBEMFlags::E_EXCLUDE_CLASS_ORIGIN, const StringArray *propertyList=0)
 Gets the CIM instance for the specified CIM object path.
CIMValue invokeMethod (const CIMObjectPath &path, const String &methodName, const CIMParamValueArray &inParams, CIMParamValueArray &outParams)
 Executes the specified method on the specified object.
CIMQualifierType getQualifierType (const String &qualifierName)
 Gets the CIM qualifier type specified in the CIM object path.
void setQualifierType (const CIMQualifierType &qualifierType)
 Updates the specified CIM qualifier type in the specified namespace if it exist.
void deleteQualifierType (const String &qualName)
 Deletes a CIM qualfier type.
void enumQualifierTypes (CIMQualifierTypeResultHandlerIFC &result)
 Enumerates the qualifiers defined in a namespace.
CIMQualifierTypeEnumeration enumQualifierTypesE ()
void modifyClass (const CIMClass &cimClass)
 Updates the CIM class associated with the specified namespace.
void createClass (const CIMClass &cimClass)
 Adds the CIM class to the specified namespace.
void deleteClass (const String &className)
 Deletes the CIM class specified by className in namespace ns.
void modifyInstance (const CIMInstance &modifiedInstance, WBEMFlags::EIncludeQualifiersFlag includeQualifiers=WBEMFlags::E_INCLUDE_QUALIFIERS, StringArray *propertyList=0)
 Update the specified CIM instance associated with the specified namespace.
CIMObjectPath createInstance (const CIMInstance &instance)
 Add the specified CIM instance to the specified namespace.
void deleteInstance (const CIMObjectPath &path)
 Deletes the CIM instance specified by the CIM object path.
void setProperty (const CIMObjectPath &instanceName, const String &propertyName, const CIMValue &newValue)
 Set the specified CIM instance property.
CIMValue getProperty (const CIMObjectPath &instanceName, const String &propertyName)
 Get the specified CIM instance property.
void associatorNames (const CIMObjectPath &objectName, CIMObjectPathResultHandlerIFC &result, const String &assocClass=String(), const String &resultClass=String(), const String &role=String(), const String &resultRole=String())
 This method is used to enumerate the names of CIM Objects (Classes or Instances) that are associated to a particular CIM Object.
CIMObjectPathEnumeration associatorNamesE (const CIMObjectPath &objectName, const String &assocClass=String(), const String &resultClass=String(), const String &role=String(), const String &resultRole=String())
void associators (const CIMObjectPath &path, CIMInstanceResultHandlerIFC &result, const String &assocClass=String(), const String &resultClass=String(), const String &role=String(), const String &resultRole=String(), WBEMFlags::EIncludeQualifiersFlag includeQualifiers=WBEMFlags::E_EXCLUDE_QUALIFIERS, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin=WBEMFlags::E_EXCLUDE_CLASS_ORIGIN, const StringArray *propertyList=0)
 This operation is used to enumerate CIMInstances that are associated to a particular source CIM Instance.
CIMInstanceEnumeration associatorsE (const CIMObjectPath &path, const String &assocClass=String(), const String &resultClass=String(), const String &role=String(), const String &resultRole=String(), WBEMFlags::EIncludeQualifiersFlag includeQualifiers=WBEMFlags::E_EXCLUDE_QUALIFIERS, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin=WBEMFlags::E_EXCLUDE_CLASS_ORIGIN, const StringArray *propertyList=0)
void associatorsClasses (const CIMObjectPath &path, CIMClassResultHandlerIFC &result, const String &assocClass=String(), const String &resultClass=String(), const String &role=String(), const String &resultRole=String(), WBEMFlags::EIncludeQualifiersFlag includeQualifiers=WBEMFlags::E_EXCLUDE_QUALIFIERS, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin=WBEMFlags::E_EXCLUDE_CLASS_ORIGIN, const StringArray *propertyList=0)
 This operation is used to enumerate CIMClasses that are associated to a particular source CIM Object.
CIMClassEnumeration associatorsClassesE (const CIMObjectPath &path, const String &assocClass=String(), const String &resultClass=String(), const String &role=String(), const String &resultRole=String(), WBEMFlags::EIncludeQualifiersFlag includeQualifiers=WBEMFlags::E_EXCLUDE_QUALIFIERS, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin=WBEMFlags::E_EXCLUDE_CLASS_ORIGIN, const StringArray *propertyList=0)
void referenceNames (const CIMObjectPath &path, CIMObjectPathResultHandlerIFC &result, const String &resultClass=String(), const String &role=String())
 This operation is used to enumerate the association objects that refer to a particular target CIM Object.
CIMObjectPathEnumeration referenceNamesE (const CIMObjectPath &path, const String &resultClass=String(), const String &role=String())
void references (const CIMObjectPath &path, CIMInstanceResultHandlerIFC &result, const String &resultClass=String(), const String &role=String(), WBEMFlags::EIncludeQualifiersFlag includeQualifiers=WBEMFlags::E_EXCLUDE_QUALIFIERS, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin=WBEMFlags::E_EXCLUDE_CLASS_ORIGIN, const StringArray *propertyList=0)
 This operation is used to enumerate the association objects that refer to a particular target CIM Object (Class or Instance).
CIMInstanceEnumeration referencesE (const CIMObjectPath &path, const String &resultClass=String(), const String &role=String(), WBEMFlags::EIncludeQualifiersFlag includeQualifiers=WBEMFlags::E_EXCLUDE_QUALIFIERS, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin=WBEMFlags::E_EXCLUDE_CLASS_ORIGIN, const StringArray *propertyList=0)
void referencesClasses (const CIMObjectPath &path, CIMClassResultHandlerIFC &result, const String &resultClass=String(), const String &role=String(), WBEMFlags::EIncludeQualifiersFlag includeQualifiers=WBEMFlags::E_EXCLUDE_QUALIFIERS, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin=WBEMFlags::E_EXCLUDE_CLASS_ORIGIN, const StringArray *propertyList=0)
CIMClassEnumeration referencesClassesE (const CIMObjectPath &path, const String &resultClass=String(), const String &role=String(), WBEMFlags::EIncludeQualifiersFlag includeQualifiers=WBEMFlags::E_EXCLUDE_QUALIFIERS, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin=WBEMFlags::E_EXCLUDE_CLASS_ORIGIN, const StringArray *propertyList=0)
void execQuery (CIMInstanceResultHandlerIFC &result, const String &query, const String &queryLanguage)
 Executes a query to retrieve or modify objects.
CIMInstanceEnumeration execQueryE (const String &query, const String &queryLanguage)
bool setHTTPRequestHeader (const String &hdrName, const String &hdrValue)
 Set/Add an HTTP header and its associated value.
bool getHTTPResponseHeader (const String &hdrName, String &valueOut) const
 Get the value of an HTTP header that was returned in the CIMOM's response.

Private Attributes

String m_namespace
ClientCIMOMHandleRef m_ch

Detailed Description

This class is a convenience wrapper to make it easier to use all the client pieces together.

All operations will be sent to the cimom identified in the url passed to the constructor. The namespace passed to the constructor will be used for all calls. If the scheme in the url begins with "owbinary" then the openwbem binary protocol will be used, otherwise CIM/XML is the default.

Definition at line 55 of file OW_CIMClient.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::CIMClient::CIMClient const String url,
const String ns,
const ClientAuthCBIFCRef authCB = ClientAuthCBIFCRef()
 

Constructor.

Parameters:
url The url identifying the cimom to talk to. If the scheme portion of the url begins with "owbinary" (e.g. owbinary.wbem://test1:pass1:30926/), then the openwbem binary protocol will be used. Otherwise CIM/XML is the default.
ns The namespace to be used for all CIM operations performed by this object.
authCB The callback to be used to obtain username & password credentials as needed. The default will simply cause an exception to be thrown if authentication fails. Note that the credentials can be specified in the url.

Definition at line 53 of file OW_CIMClient.cpp.


Member Function Documentation

void OW_NAMESPACE::CIMClient::associatorNames const CIMObjectPath objectName,
CIMObjectPathResultHandlerIFC result,
const String assocClass = String(),
const String resultClass = String(),
const String role = String(),
const String resultRole = String()
 

This method is used to enumerate the names of CIM Objects (Classes or Instances) that are associated to a particular CIM Object.

Parameters:
objectName Defines the source CIM Object whose associated Objects are to be returned. This may be either a Class name or Instance name (modelpath).
assocClass The AssocClass input parameter, if not NULL, MUST be a valid CIM Association Class name. It acts as a filter on the returned set of Objects by mandating that each returned Object MUST be associated to the source Object via an Instance of this Class or one of its subclasses.
resultClass The ResultClass input parameter, if not NULL, MUST be a valid CIM Class name. It acts as a filter on the returned set of Objects by mandating that each returned Object MUST be either an Instance of this Class (or one of its subclasses) or be this Class (or one of its subclasses).
role The Role input parameter, if not NULL, MUST be a valid Property name. It acts as a filter on the returned set of Objects by mandating that each returned Object MUST be associated to the source Object via an Association in which the source Object plays the specified role (i.e. the name of the Property in the Association Class that refers to the source Object MUST match the value of this parameter).
resultRole The ResultRole input parameter, if not NULL, MUST be a valid Property name. It acts as a filter on the returned set of Objects by mandating that each returned Object MUST be associated to the source Object via an Association in which the returned Object plays the specified role (i.e. the name of the Property in the Association Class that refers to the returned Object MUST match the value of this parameter).
Returns:
If successful, the method returns zero or more full CIM Class paths or Instance paths of Objects meeting the requested criteria.
Exceptions:
CIMException - as defined in the associator method

Definition at line 343 of file OW_CIMClient.cpp.

References m_ch, m_namespace, and result.

Referenced by OW_NAMESPACE::registerCIMClient().

CIMObjectPathEnumeration OW_NAMESPACE::CIMClient::associatorNamesE const CIMObjectPath objectName,
const String assocClass = String(),
const String resultClass = String(),
const String role = String(),
const String resultRole = String()
 

Definition at line 356 of file OW_CIMClient.cpp.

References m_ch, and m_namespace.

Referenced by OW_NAMESPACE::registerCIMClient().

void OW_NAMESPACE::CIMClient::associators const CIMObjectPath path,
CIMInstanceResultHandlerIFC result,
const String assocClass = String(),
const String resultClass = String(),
const String role = String(),
const String resultRole = String(),
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers = WBEMFlags::E_EXCLUDE_QUALIFIERS,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin = WBEMFlags::E_EXCLUDE_CLASS_ORIGIN,
const StringArray propertyList = 0
 

This operation is used to enumerate CIMInstances that are associated to a particular source CIM Instance.

Parameters:
objectName Defines the source CIM Instance whose associated Instances are to be returned.
assocClass The AssocClass input parameter, if not "", MUST be a valid CIM Association Class name. It acts as a filter on the returned set of Objects by mandating that each returned Object MUST be associated to the source Object via an Instance of this Class or one of its subclasses.
resultClass The ResultClass input parameter, if not "", MUST be a valid CIM Class name. It acts as a filter on the returned set of Objects by mandating that each returned Object MUST be either an Instance of this Class (or one of its subclasses) or be this Class (or one of its subclasses).
role The Role input parameter, if not NULL, "" be a valid Property name. It acts as a filter on the returned set of Objects by mandating that each returned Object MUST be associated to the source Object via an Association in which the source Object plays the specified role (i.e. the name of the Property in the Association Class that refers to the source Object MUST match the value of this parameter).
resultRole The ResultRole input parameter, if not "", MUST be a valid Property name. It acts as a filter on the returned set of Objects by mandating that each returned Object MUST be associated to the source Object via an Association in which the returned Object plays the specified role (i.e. the name of the Property in the Association Class that refers to the returned Object MUST match the value of this parameter).
includeQualifiers If set toWBEMFlags::E_INCLUDE_QUALIFIERS then all Qualifiers for each Object (including Qualifiers on the Object and on any returned Properties) MUST be included as elements in the response.If set toWBEMFlags::E_EXCLUDE_QUALIFIERS, then no qualifiers will be present in the returned object(s).
includeClassOrigin If the IncludeClassOrigin input parameter is true, this specifies that the CLASSORIGIN attribute MUST be present on all appropriate elements in each returned Object. If false, no CLASSORIGIN attributes are present in each returned Object.
propertyList If the PropertyList input parameter is not NULL, the members of the array define one or more Property names. Each returned Object MUST NOT include elements for any Properties missing from this list. Note that if LocalOnly is specified as true (or DeepInheritance is specified as false) this acts as an additional filter on the set of Properties returned (for example, if Property A is included in the PropertyList but LocalOnly is set to true and A is not local to a returned Instance, then it will not be included in that Instance). If the PropertyList input parameter is an empty array this signifies that no Properties are included in each returned Object. If the PropertyList input parameter is NULL this specifies that all Properties (subject to the conditions expressed by the other parameters) are included in each returned Object. If the PropertyList contains duplicate elements, the Server ignores the duplicates but otherwise process the request normally. If the PropertyList contains elements which are invalid Property names for any target Object, the Server ignores such entries but otherwise process the request normally. Clients SHOULD NOT explicitly specify properties in the PropertyList parameter unless they have specified a non-NULL value for the ResultClass parameter.
Returns:
If successful, the method returns zero or more CIM Instances meeting the requested criteria.
Exceptions:
CIMException. The following IDs can be expected. CIM_ERR_ACCESS_DENIED CIM_ERR_NOT_SUPPORTED CIM_ERR_INVALID_NAMESPACE CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters) CIM_ERR_FAILED (some other unspecified error occurred)

Definition at line 368 of file OW_CIMClient.cpp.

References m_ch, m_namespace, propertyList, and result.

Referenced by OW_NAMESPACE::registerCIMClient().

void OW_NAMESPACE::CIMClient::associatorsClasses const CIMObjectPath path,
CIMClassResultHandlerIFC result,
const String assocClass = String(),
const String resultClass = String(),
const String role = String(),
const String resultRole = String(),
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers = WBEMFlags::E_EXCLUDE_QUALIFIERS,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin = WBEMFlags::E_EXCLUDE_CLASS_ORIGIN,
const StringArray propertyList = 0
 

This operation is used to enumerate CIMClasses that are associated to a particular source CIM Object.

Parameters:
objectName Defines the source CIM Class whose associated classes are to be returned.
assocClass The AssocClass input parameter, if not "", MUST be a valid CIM Association Class name. It acts as a filter on the returned set of Objects by mandating that each returned Object MUST be associated to the source Object via an Instance of this Class or one of its subclasses.
resultClass The ResultClass input parameter, if not "", MUST be a valid CIM Class name. It acts as a filter on the returned set of Objects by mandating that each returned Object MUST be either an Instance of this Class (or one of its subclasses) or be this Class (or one of its subclasses).
role The Role input parameter, if not NULL, "" be a valid Property name. It acts as a filter on the returned set of Objects by mandating that each returned Object MUST be associated to the source Object via an Association in which the source Object plays the specified role (i.e. the name of the Property in the Association Class that refers to the source Object MUST match the value of this parameter).
resultRole The ResultRole input parameter, if not "", MUST be a valid Property name. It acts as a filter on the returned set of Objects by mandating that each returned Object MUST be associated to the source Object via an Association in which the returned Object plays the specified role (i.e. the name of the Property in the Association Class that refers to the returned Object MUST match the value of this parameter).
includeQualifiers If set toWBEMFlags::E_INCLUDE_QUALIFIERS then all Qualifiers for each Object (including Qualifiers on the Object and on any returned Properties) MUST be included as elements in the response.If set toWBEMFlags::E_EXCLUDE_QUALIFIERS, then no qualifiers will be present in the returned object(s).
includeClassOrigin If the IncludeClassOrigin input parameter is true, this specifies that the CLASSORIGIN attribute MUST be present on all appropriate elements in each returned Object. If false, no CLASSORIGIN attributes are present in each returned Object.
propertyList If the PropertyList input parameter is not NULL, the members of the array define one or more Property names. Each returned Object MUST NOT include elements for any Properties missing from this list. Note that if LocalOnly is specified as true (or DeepInheritance is specified as false) this acts as an additional filter on the set of Properties returned (for example, if Property A is included in the PropertyList but LocalOnly is set to true and A is not local to a returned Instance, then it will not be included in that Instance). If the PropertyList input parameter is an empty array this signifies that no Properties are included in each returned Object. If the PropertyList input parameter is NULL this specifies that all Properties (subject to the conditions expressed by the other parameters) are included in each returned Object. If the PropertyList contains duplicate elements, the Server ignores the duplicates but otherwise process the request normally. If the PropertyList contains elements which are invalid Property names for any target Object, the Server ignores such entries but otherwise process the request normally. Clients SHOULD NOT explicitly specify properties in the PropertyList parameter unless they have specified a non-NULL value for the ResultClass parameter.
Returns:
If successful, the method returns zero or more CIM Instances meeting the requested criteria.
Exceptions:
CIMException. The following IDs can be expected. CIM_ERR_ACCESS_DENIED CIM_ERR_NOT_SUPPORTED CIM_ERR_INVALID_NAMESPACE CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters) CIM_ERR_FAILED (some other unspecified error occurred)

Definition at line 401 of file OW_CIMClient.cpp.

References m_ch, m_namespace, propertyList, and result.

Referenced by OW_NAMESPACE::registerCIMClient().

CIMClassEnumeration OW_NAMESPACE::CIMClient::associatorsClassesE const CIMObjectPath path,
const String assocClass = String(),
const String resultClass = String(),
const String role = String(),
const String resultRole = String(),
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers = WBEMFlags::E_EXCLUDE_QUALIFIERS,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin = WBEMFlags::E_EXCLUDE_CLASS_ORIGIN,
const StringArray propertyList = 0
 

Definition at line 418 of file OW_CIMClient.cpp.

References m_ch, m_namespace, and propertyList.

Referenced by OW_NAMESPACE::registerCIMClient().

CIMInstanceEnumeration OW_NAMESPACE::CIMClient::associatorsE const CIMObjectPath path,
const String assocClass = String(),
const String resultClass = String(),
const String role = String(),
const String resultRole = String(),
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers = WBEMFlags::E_EXCLUDE_QUALIFIERS,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin = WBEMFlags::E_EXCLUDE_CLASS_ORIGIN,
const StringArray propertyList = 0
 

Definition at line 385 of file OW_CIMClient.cpp.

References m_ch, m_namespace, and propertyList.

Referenced by OW_NAMESPACE::registerCIMClient().

void OW_NAMESPACE::CIMClient::createClass const CIMClass cimClass  ) 
 

Adds the CIM class to the specified namespace.

Parameters:
cimClass The CIMClass to be added
Exceptions:
CIMException If the CIM class already exists in the namespace.

Definition at line 285 of file OW_CIMClient.cpp.

References cimClass, m_ch, and m_namespace.

Referenced by OW_NAMESPACE::registerCIMClient().

CIMObjectPath OW_NAMESPACE::CIMClient::createInstance const CIMInstance instance  ) 
 

Add the specified CIM instance to the specified namespace.

Parameters:
instance the CIMInstance to be added
Returns:
An CIMObjectPath of the created instance.
Exceptions:
CIMException If the CIM instance already exists in the namespace

Definition at line 308 of file OW_CIMClient.cpp.

References m_ch, and m_namespace.

Referenced by OW_NAMESPACE::registerCIMClient().

void OW_NAMESPACE::CIMClient::createNameSpace const String ns  ) 
 

Create a cim namespace.

Parameters:
ns The namespace name to be created.
Exceptions:
CIMException If the namespace already exists.

Definition at line 60 of file OW_CIMClient.cpp.

References OW_NAMESPACE::CIMNameSpaceUtils::create__Namespace(), OW_NAMESPACE::CIMNameSpaceUtils::createCIM_Namespace(), m_ch, and ns.

Referenced by OW_NAMESPACE::registerCIMClient().

void OW_NAMESPACE::CIMClient::deleteClass const String className  ) 
 

Deletes the CIM class specified by className in namespace ns.

Parameters:
className The class to delete
Exceptions:
CIMException If the object does not exist

Definition at line 291 of file OW_CIMClient.cpp.

References className, m_ch, and m_namespace.

Referenced by OW_NAMESPACE::registerCIMClient().

void OW_NAMESPACE::CIMClient::deleteInstance const CIMObjectPath path  ) 
 

Deletes the CIM instance specified by the CIM object path.

A CIM object path consists of two parts: namespace + model path. The model path is created by concatenating the properties of a class that are qualified with the KEY qualifier.

Parameters:
path The CIMObjectPath identifying the instance to delete.
Exceptions:
CIMException If the instance does not exist.

Definition at line 314 of file OW_CIMClient.cpp.

References m_ch, and m_namespace.

Referenced by OW_NAMESPACE::registerCIMClient().

void OW_NAMESPACE::CIMClient::deleteNameSpace const String ns  ) 
 

Delete a specified namespace.

Parameters:
ns The namespace to delete.
Exceptions:
CIMException If the namespace does not exist.

Definition at line 73 of file OW_CIMClient.cpp.

References OW_NAMESPACE::CIMNameSpaceUtils::delete__Namespace(), OW_NAMESPACE::CIMNameSpaceUtils::deleteCIM_Namespace(), m_ch, and ns.

Referenced by OW_NAMESPACE::registerCIMClient().

void OW_NAMESPACE::CIMClient::deleteQualifierType const String qualName  ) 
 

Deletes a CIM qualfier type.

Parameters:
qualName The qualifier type to delete.
Exceptions:
CIMException If the qualifier type does not exist.

Definition at line 258 of file OW_CIMClient.cpp.

References m_ch, and m_namespace.

Referenced by OW_NAMESPACE::registerCIMClient().

void OW_NAMESPACE::CIMClient::enumCIM_Namespace StringResultHandlerIFC result  ) 
 

Definition at line 115 of file OW_CIMClient.cpp.

References OW_NAMESPACE::WBEMFlags::E_DEEP, OW_NAMESPACE::CIMNameSpaceUtils::enum__Namespace(), OW_NAMESPACE::CIMNameSpaceUtils::enumCIM_Namespace(), m_ch, m_namespace, and result.

StringArray OW_NAMESPACE::CIMClient::enumCIM_NamespaceE  ) 
 

Gets a list of the namespaces.

This will first try enumerating instances of root/CIM_Namespace, and if that fails, then a recursive enumeration of __Namespace from the current namespace.

Returns:
An Array of namespace names as strings.
Exceptions:
CIMException If the namespace does not exist or the object cannot be found in the specified namespace.

Definition at line 101 of file OW_CIMClient.cpp.

References OW_NAMESPACE::WBEMFlags::E_DEEP, OW_NAMESPACE::CIMNameSpaceUtils::enum__Namespace(), OW_NAMESPACE::CIMNameSpaceUtils::enumCIM_Namespace(), m_ch, and m_namespace.

void OW_NAMESPACE::CIMClient::enumClass const String className,
CIMClassResultHandlerIFC result,
WBEMFlags::EDeepFlag  deep = WBEMFlags::E_SHALLOW,
WBEMFlags::ELocalOnlyFlag  localOnly = WBEMFlags::E_NOT_LOCAL_ONLY,
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers = WBEMFlags::E_INCLUDE_QUALIFIERS,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin = WBEMFlags::E_INCLUDE_CLASS_ORIGIN
 

Enumerates the class specified by the CIMObjectPath.

Parameters:
className The class to be enumerated.
deep If set to DEEP, the enumeration returned will contain the names of all classes derived from the enumerated class. If set to SHALLOW the enumermation will return only the names of the first level children of the enumerated class.
localOnly If set to LOCAL_ONLY, only the non-inherited properties are returned on each instance, otherwise all properties are returned.
includeQualifiers If set toWBEMFlags::E_INCLUDE_QUALIFIERS, then all class, property and method qualifiers will be returned.
includeClassOrigin If true, then the class origin attribute will be included with all appropriate elements of each class.
Exceptions:
CIMException If the specified CIMObjectPath object cannot be found

Definition at line 129 of file OW_CIMClient.cpp.

References className, m_ch, m_namespace, and result.

Referenced by OW_NAMESPACE::registerCIMClient().

CIMClassEnumeration OW_NAMESPACE::CIMClient::enumClassE const String className,
WBEMFlags::EDeepFlag  deep = WBEMFlags::E_SHALLOW,
WBEMFlags::ELocalOnlyFlag  localOnly = WBEMFlags::E_NOT_LOCAL_ONLY,
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers = WBEMFlags::E_INCLUDE_QUALIFIERS,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin = WBEMFlags::E_INCLUDE_CLASS_ORIGIN
 

Definition at line 141 of file OW_CIMClient.cpp.

References className, m_ch, and m_namespace.

Referenced by OW_NAMESPACE::registerCIMClient().

void OW_NAMESPACE::CIMClient::enumClassNames const String className,
StringResultHandlerIFC result,
WBEMFlags::EDeepFlag  deep = WBEMFlags::E_DEEP
 

Enumerates the class specified by the CIMObjectPath.

Parameters:
className The class to be enumerated.
deep If set to DEEP, the enumeration returned will contain the names of all classes derived from the enumerated class. If set to SHALLOW the enumermation will return only the names of the first level children of the enumerated class.
Exceptions:
CIMException If the specified CIMObjectPath object cannot be found.

Definition at line 152 of file OW_CIMClient.cpp.

References className, m_ch, m_namespace, and result.

Referenced by OW_NAMESPACE::registerCIMClient().

StringEnumeration OW_NAMESPACE::CIMClient::enumClassNamesE const String className,
WBEMFlags::EDeepFlag  deep = WBEMFlags::E_DEEP
 

Definition at line 161 of file OW_CIMClient.cpp.

References className, m_ch, and m_namespace.

Referenced by OW_NAMESPACE::registerCIMClient().

void OW_NAMESPACE::CIMClient::enumInstanceNames const String className,
CIMObjectPathResultHandlerIFC result
 

Returns all instance names belonging to the class specified in the path.

This could include instances of all the classes in the specified class' hierarchy.

Parameters:
className The class whose instances are to be enumerated.
Exceptions:
CIMException If the object cannot be found

Definition at line 196 of file OW_CIMClient.cpp.

References className, m_ch, m_namespace, and result.

Referenced by OW_NAMESPACE::registerCIMClient().

CIMObjectPathEnumeration OW_NAMESPACE::CIMClient::enumInstanceNamesE const String className  ) 
 

Definition at line 204 of file OW_CIMClient.cpp.

References className, m_ch, and m_namespace.

Referenced by OW_NAMESPACE::registerCIMClient().

void OW_NAMESPACE::CIMClient::enumInstances const String className,
CIMInstanceResultHandlerIFC result,
WBEMFlags::EDeepFlag  deep = WBEMFlags::E_DEEP,
WBEMFlags::ELocalOnlyFlag  localOnly = WBEMFlags::E_NOT_LOCAL_ONLY,
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers = WBEMFlags::E_EXCLUDE_QUALIFIERS,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin = WBEMFlags::E_EXCLUDE_CLASS_ORIGIN,
const StringArray propertyList = 0
 

Returns all instances (the whole instance and not just the names) belonging to the class specified in the path.

This could include instances of all the classes in the specified class' hierarchy.

Parameters:
className The class whose instances are to be enumerated.
deep Return properties defined on subclasses of the class in path
localOnly If set to LOCAL_ONLY, only the non-inherited properties are returned on each instance, otherwise all inherited properties are returned.
includeQualifiers If set toWBEMFlags::E_INCLUDE_QUALIFIERS, then all of the qualifiers from the class will be returned with the each instance.
includeClassOrigin If true, then the class origin attribute will be returned on all appropriate elements.
propertyList If not NULL and has 0 or more elements, the returned instances will not contain properties missing from this list. If not NULL and it contains NO elements, then no properties will be included in the instances. If propertyList IS NULL, then it is ignored and all properties are returned with the instances subject to constraints specified in the other parameters.
Exceptions:
CIMException If the object cannot be found

Definition at line 169 of file OW_CIMClient.cpp.

References className, m_ch, m_namespace, propertyList, and result.

Referenced by OW_NAMESPACE::registerCIMClient().

CIMInstanceEnumeration OW_NAMESPACE::CIMClient::enumInstancesE const String className,
WBEMFlags::EDeepFlag  deep = WBEMFlags::E_DEEP,
WBEMFlags::ELocalOnlyFlag  localOnly = WBEMFlags::E_NOT_LOCAL_ONLY,
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers = WBEMFlags::E_EXCLUDE_QUALIFIERS,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin = WBEMFlags::E_EXCLUDE_CLASS_ORIGIN,
const StringArray propertyList = 0
 

Definition at line 183 of file OW_CIMClient.cpp.

References className, m_ch, m_namespace, and propertyList.

Referenced by OW_NAMESPACE::registerCIMClient().

void OW_NAMESPACE::CIMClient::enumNameSpace StringResultHandlerIFC result,
WBEMFlags::EDeepFlag  deep = WBEMFlags::E_DEEP
 

Definition at line 94 of file OW_CIMClient.cpp.

References OW_NAMESPACE::CIMNameSpaceUtils::enum__Namespace(), m_ch, m_namespace, and result.

Referenced by OW_NAMESPACE::registerCIMClient().

StringArray OW_NAMESPACE::CIMClient::enumNameSpaceE WBEMFlags::EDeepFlag  deep = WBEMFlags::E_DEEP  ) 
 

Gets a list of the namespaces within the namespace specified by the CIM object path.

This is deprecated because namespaces are not hierarchial according to the CIM Operations over HTTP 1.1, even though many implementations expose namespaces hierarcially using __Namespace. use enumCIM_NameSpace() instead.

Parameters:
deep If set to DEEP, the enumeration returned will contain the entire hierarchy of namespaces present under the enumerated namespace. If set to SHALLOW the enuermation will return only the first level children of the enumerated namespace.
Returns:
An Array of namespace names as strings.
Exceptions:
CIMException If the namespace does not exist or the object cannot be found in the specified namespace.

Definition at line 88 of file OW_CIMClient.cpp.

References OW_NAMESPACE::CIMNameSpaceUtils::enum__Namespace(), m_ch, and m_namespace.

Referenced by OW_NAMESPACE::registerCIMClient().

void OW_NAMESPACE::CIMClient::enumQualifierTypes CIMQualifierTypeResultHandlerIFC result  ) 
 

Enumerates the qualifiers defined in a namespace.

Exceptions:
CIMException If the specified CIMObjectPath cannot be found

Definition at line 264 of file OW_CIMClient.cpp.

References m_ch, m_namespace, and result.

Referenced by OW_NAMESPACE::registerCIMClient().

CIMQualifierTypeEnumeration OW_NAMESPACE::CIMClient::enumQualifierTypesE  ) 
 

Definition at line 271 of file OW_CIMClient.cpp.

References m_ch, and m_namespace.

Referenced by OW_NAMESPACE::registerCIMClient().

void OW_NAMESPACE::CIMClient::execQuery CIMInstanceResultHandlerIFC result,
const String query,
const String queryLanguage
 

Executes a query to retrieve or modify objects.

Parameters:
query A string containing the text of the query. This parameter cannot be null.
queryLanguage A string containing the query language the query is written in.
Returns:
CIMInstanceArray A deep enumeration of all instances of the specified class and all classes derived from the specified class, that match the query string.
Exceptions:
CIMException If any of the following errors occur: The user does not have permission to view the result. The requested query language is not supported. The query specifies a class that does not exist.

Definition at line 508 of file OW_CIMClient.cpp.

References m_ch, m_namespace, and result.

Referenced by OW_NAMESPACE::registerCIMClient().

CIMInstanceEnumeration OW_NAMESPACE::CIMClient::execQueryE const String query,
const String queryLanguage
 

Definition at line 517 of file OW_CIMClient.cpp.

References m_ch, and m_namespace.

Referenced by OW_NAMESPACE::registerCIMClient().

CIMClass OW_NAMESPACE::CIMClient::getClass const String className,
WBEMFlags::ELocalOnlyFlag  localOnly = WBEMFlags::E_NOT_LOCAL_ONLY,
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers = WBEMFlags::E_INCLUDE_QUALIFIERS,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin = WBEMFlags::E_INCLUDE_CLASS_ORIGIN,
const StringArray propertyList = 0
 

Gets the CIM class for the specified CIM object path.

Parameters:
classNname The CIM class
localOnly If set to LOCAL_ONLY, only the non-inherited properties and methods are returned, otherwise all properties and methods are returned.
includeQualifiers If set toWBEMFlags::E_INCLUDE_QUALIFIERS, then all class, property and method qualifiers will be included in the CIMClass. Otherwise qualifiers will be excluded.
includeClassOrigin If true, then the classOrigin attribute will be present on all appropriate elements of the CIMClass
propertyList If not NULL, only properties contained in this array will be included in the CIMClass. If NULL, all properties will be returned.
Returns:
CIMClass the CIM class indentified by the CIMObjectPath
Exceptions:
CIMException If the namespace or the model path identifying the object cannot be found

Definition at line 211 of file OW_CIMClient.cpp.

References className, m_ch, m_namespace, and propertyList.

Referenced by OW_NAMESPACE::registerCIMClient().

bool OW_NAMESPACE::CIMClient::getHTTPResponseHeader const String hdrName,
String valueOut
const
 

Get the value of an HTTP header that was returned in the CIMOM's response.

Parameters:
hdrName The of the HTTP Header value to retrieve. (e.g. "Content-Language")
valueOut An output param that will hold the value of the header on return.
Returns:
true if the header exists. Otherwise false.

Definition at line 531 of file OW_CIMClient.cpp.

References m_ch.

CIMInstance OW_NAMESPACE::CIMClient::getInstance const CIMObjectPath instanceName,
WBEMFlags::ELocalOnlyFlag  localOnly = WBEMFlags::E_NOT_LOCAL_ONLY,
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers = WBEMFlags::E_EXCLUDE_QUALIFIERS,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin = WBEMFlags::E_EXCLUDE_CLASS_ORIGIN,
const StringArray propertyList = 0
 

Gets the CIM instance for the specified CIM object path.

Parameters:
instanceName The CIMObjectPath that identifies this CIM instance
localOnly If set to LOCAL_ONLY, only the non-inherited properties are returned, otherwise all properties are returned.
includeQualifiers If set toWBEMFlags::E_INCLUDE_QUALIFIERS, then all of the qualifiers from the class will be returned with the instance. Otherwise no qualifiers will be included with the instance.
includeClassOrigin If true, then the class origin attribute will be returned on all appropriate elements
propertyList If not NULL and has 0 or more elements, the returned instance will not contain properties missing from this list. If not NULL and it contains NO elements, then no properties will be included in the instance. If propertyList IS NULL, then it is ignored and all properties are returned with the instance subject to constraints specified in the other parameters.
Returns:
The CIMInstance identified by the CIMObjectPath
Exceptions:
CIMException If the specified CIMObjectPath cannot be found

Definition at line 223 of file OW_CIMClient.cpp.

References m_ch, m_namespace, and propertyList.

Referenced by OW_NAMESPACE::registerCIMClient().

String OW_NAMESPACE::CIMClient::getNameSpace  )  const [inline]
 

Definition at line 74 of file OW_CIMClient.hpp.

References m_namespace.

Referenced by OW_NAMESPACE::registerCIMClient().

CIMValue OW_NAMESPACE::CIMClient::getProperty const CIMObjectPath instanceName,
const String propertyName
 

Get the specified CIM instance property.

Parameters:
instanceName An CIMObjectPath that identifies the CIM instance to be accessed
propertyName The name of the property to retrieve.
Returns:
The CIMvalue for property identified by propertyName.
Exceptions:
CIMException 

Definition at line 333 of file OW_CIMClient.cpp.

References m_ch, and m_namespace.

Referenced by OW_NAMESPACE::registerCIMClient().

CIMQualifierType OW_NAMESPACE::CIMClient::getQualifierType const String qualifierName  ) 
 

Gets the CIM qualifier type specified in the CIM object path.

Parameters:
qualifierName The name of the CIM qualifier type.
Returns:
An CIMQualifierType identified by name.
Exceptions:
CIMException If the CIM qualifier type cannot be found

Definition at line 245 of file OW_CIMClient.cpp.

References m_ch, and m_namespace.

Referenced by OW_NAMESPACE::registerCIMClient().

CIMValue OW_NAMESPACE::CIMClient::invokeMethod const CIMObjectPath path,
const String methodName,
const CIMParamValueArray inParams,
CIMParamValueArray outParams
 

Executes the specified method on the specified object.

A method is a declaration containing the method name, return type, and parameters in the method.

Parameters:
path An CIMObjectPath that identifies the class or instance on which to invoke the method.
methodName The string name of the method to be invoked
inParams The input parameters specified as an CIMValueArray.
outParams The output parameters.
Returns:
A non-null CIMValue on success. Otherwise a null CIMValue.
Exceptions:
CIMException If the specified method cannot be found

Definition at line 235 of file OW_CIMClient.cpp.

References m_ch, m_namespace, and outParams.

Referenced by OW_NAMESPACE::registerCIMClient().

void OW_NAMESPACE::CIMClient::modifyClass const CIMClass cimClass  ) 
 

Updates the CIM class associated with the specified namespace.

Parameters:
cimClass The CIMClass to be updated
Exceptions:
CIMException If the class does not exists

Definition at line 279 of file OW_CIMClient.cpp.

References cimClass, m_ch, and m_namespace.

Referenced by OW_NAMESPACE::registerCIMClient().

void OW_NAMESPACE::CIMClient::modifyInstance const CIMInstance modifiedInstance,
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers = WBEMFlags::E_INCLUDE_QUALIFIERS,
StringArray propertyList = 0
 

Update the specified CIM instance associated with the specified namespace.

Parameters:
modifiedInstance The CIMInstance to be updated.
includeQualifiers Modify the qualifiers
propertyList The properties to modify. 0 means all properties.
Exceptions:
CIMException 

Definition at line 299 of file OW_CIMClient.cpp.

References m_ch, m_namespace, and propertyList.

Referenced by OW_NAMESPACE::registerCIMClient().

void OW_NAMESPACE::CIMClient::referenceNames const CIMObjectPath path,
CIMObjectPathResultHandlerIFC result,
const String resultClass = String(),
const String role = String()
 

This operation is used to enumerate the association objects that refer to a particular target CIM Object.

Parameters:
objectName refer to reference method.
resultClass refer to reference method.
role refer to reference method.
Returns:
If successful, the method returns the names of zero or more full CIM Class paths or Instance paths of Objects meeting the requested criteria.
Exceptions:
CIMException As defined for associators method.

Definition at line 434 of file OW_CIMClient.cpp.

References m_ch, m_namespace, and result.

Referenced by OW_NAMESPACE::registerCIMClient().

CIMObjectPathEnumeration OW_NAMESPACE::CIMClient::referenceNamesE const CIMObjectPath path,
const String resultClass = String(),
const String role = String()
 

Definition at line 444 of file OW_CIMClient.cpp.

References m_ch, and m_namespace.

Referenced by OW_NAMESPACE::registerCIMClient().

void OW_NAMESPACE::CIMClient::references const CIMObjectPath path,
CIMInstanceResultHandlerIFC result,
const String resultClass = String(),
const String role = String(),
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers = WBEMFlags::E_EXCLUDE_QUALIFIERS,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin = WBEMFlags::E_EXCLUDE_CLASS_ORIGIN,
const StringArray propertyList = 0
 

This operation is used to enumerate the association objects that refer to a particular target CIM Object (Class or Instance).

Parameters:
objectName The ObjectName input parameter defines the target CIM Object whose referring Objects are to be returned. This is either a Class name or Instance name (model path).
resultClass The ResultClass input parameter, if not NULL, MUST be a valid CIM Class name. It acts as a filter on the returned set of Objects by mandating that each returned Object MUST be an Instance of this Class (or one of its subclasses), or this Class (or one of its subclasses).
role The Role input parameter, if not NULL, MUST be a valid Property name. It acts as a filter on the returned set of Objects by mandating that each returned Objects MUST refer to the target Object via a Property whose name matches the value of this parameter.
includeQualifiers Refer to includeQualifiers for associators.
includeClassOrigin Refer to includeQualifiers for associators.
propertyList Refer to includeQualifiers for associators.
Returns:
If successful, the method returns zero or more CIM Classes or Instances meeting the requested criteria.
Exceptions:
CIMException - as defined for associators method.

Definition at line 453 of file OW_CIMClient.cpp.

References m_ch, m_namespace, propertyList, and result.

Referenced by OW_NAMESPACE::registerCIMClient().

void OW_NAMESPACE::CIMClient::referencesClasses const CIMObjectPath path,
CIMClassResultHandlerIFC result,
const String resultClass = String(),
const String role = String(),
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers = WBEMFlags::E_EXCLUDE_QUALIFIERS,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin = WBEMFlags::E_EXCLUDE_CLASS_ORIGIN,
const StringArray propertyList = 0
 

Definition at line 480 of file OW_CIMClient.cpp.

References m_ch, m_namespace, propertyList, and result.

Referenced by OW_NAMESPACE::registerCIMClient().

CIMClassEnumeration OW_NAMESPACE::CIMClient::referencesClassesE const CIMObjectPath path,
const String resultClass = String(),
const String role = String(),
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers = WBEMFlags::E_EXCLUDE_QUALIFIERS,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin = WBEMFlags::E_EXCLUDE_CLASS_ORIGIN,
const StringArray propertyList = 0
 

Definition at line 494 of file OW_CIMClient.cpp.

References m_ch, m_namespace, and propertyList.

Referenced by OW_NAMESPACE::registerCIMClient().

CIMInstanceEnumeration OW_NAMESPACE::CIMClient::referencesE const CIMObjectPath path,
const String resultClass = String(),
const String role = String(),
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers = WBEMFlags::E_EXCLUDE_QUALIFIERS,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin = WBEMFlags::E_EXCLUDE_CLASS_ORIGIN,
const StringArray propertyList = 0
 

Definition at line 467 of file OW_CIMClient.cpp.

References m_ch, m_namespace, and propertyList.

Referenced by OW_NAMESPACE::registerCIMClient().

bool OW_NAMESPACE::CIMClient::setHTTPRequestHeader const String hdrName,
const String hdrValue
 

Set/Add an HTTP header and its associated value.

This header will be sent to the CIMOM on every request.

Parameters:
hdrName The name of the HTTP Header (e.g. "Accept-Language")
hdrValue The value of the HTTP Header (e.g. "en-US, en")
Returns:
true if successful. Otherwise false.

Definition at line 525 of file OW_CIMClient.cpp.

References m_ch.

void OW_NAMESPACE::CIMClient::setNameSpace const String arg  )  [inline]
 

Definition at line 73 of file OW_CIMClient.hpp.

References m_namespace.

Referenced by OW_NAMESPACE::registerCIMClient().

void OW_NAMESPACE::CIMClient::setProperty const CIMObjectPath instanceName,
const String propertyName,
const CIMValue newValue
 

Set the specified CIM instance property.

Parameters:
instanceName An CIMObjectPath that identifies the CIM instance to be accessed
propertyName The name of the property to set the value on.
newValue The new value for property propertyName.
Exceptions:
CIMException 

Definition at line 321 of file OW_CIMClient.cpp.

References m_ch, and m_namespace.

Referenced by OW_NAMESPACE::registerCIMClient().

void OW_NAMESPACE::CIMClient::setQualifierType const CIMQualifierType qualifierType  ) 
 

Updates the specified CIM qualifier type in the specified namespace if it exist.

If it doesn't exist, it will be added.

Parameters:
qualifierType The CIM qualifier type to be updated or added.

Definition at line 252 of file OW_CIMClient.cpp.

References m_ch, and m_namespace.

Referenced by OW_NAMESPACE::registerCIMClient().


Member Data Documentation

ClientCIMOMHandleRef OW_NAMESPACE::CIMClient::m_ch [private]
 

Definition at line 777 of file OW_CIMClient.hpp.

Referenced by associatorNames(), associatorNamesE(), associators(), associatorsClasses(), associatorsClassesE(), associatorsE(), createClass(), createInstance(), createNameSpace(), deleteClass(), deleteInstance(), deleteNameSpace(), deleteQualifierType(), enumCIM_Namespace(), enumCIM_NamespaceE(), enumClass(), enumClassE(), enumClassNames(), enumClassNamesE(), enumInstanceNames(), enumInstanceNamesE(), enumInstances(), enumInstancesE(), enumNameSpace(), enumNameSpaceE(), enumQualifierTypes(), enumQualifierTypesE(), execQuery(), execQueryE(), getClass(), getHTTPResponseHeader(), getInstance(), getProperty(), getQualifierType(), invokeMethod(), modifyClass(), modifyInstance(), referenceNames(), referenceNamesE(), references(), referencesClasses(), referencesClassesE(), referencesE(), setHTTPRequestHeader(), setProperty(), and setQualifierType().

String OW_NAMESPACE::CIMClient::m_namespace [private]
 

Definition at line 768 of file OW_CIMClient.hpp.

Referenced by associatorNames(), associatorNamesE(), associators(), associatorsClasses(), associatorsClassesE(), associatorsE(), createClass(), createInstance(), deleteClass(), deleteInstance(), deleteQualifierType(), enumCIM_Namespace(), enumCIM_NamespaceE(), enumClass(), enumClassE(), enumClassNames(), enumClassNamesE(), enumInstanceNames(), enumInstanceNamesE(), enumInstances(), enumInstancesE(), enumNameSpace(), enumNameSpaceE(), enumQualifierTypes(), enumQualifierTypesE(), execQuery(), execQueryE(), getClass(), getInstance(), getProperty(), getQualifierType(), invokeMethod(), modifyClass(), modifyInstance(), referenceNames(), referenceNamesE(), references(), referencesClasses(), referencesClassesE(), referencesE(), setProperty(), and setQualifierType().


The documentation for this class was generated from the following files:
Generated on Thu Feb 9 09:13:15 2006 for openwbem by  doxygen 1.4.6