version 1.14, 2005/02/03 04:17:46
|
version 1.16, 2005/02/03 18:35:05
|
|
|
// Attempt to get the cached class definition used to validate results of this | // Attempt to get the cached class definition used to validate results of this |
// operation. If it does not exist, then this feature is disabled for this | // operation. If it does not exist, then this feature is disabled for this |
// operation. | // operation. |
|
CIMClass cimClass; |
|
|
try | try |
{ | { |
CachedClassDefinitionContainer container = | CachedClassDefinitionContainer container = |
request->operationContext.get(CachedClassDefinitionContainer::NAME); | request->operationContext.get(CachedClassDefinitionContainer::NAME); |
| |
CIMClass cimClass = container.getClass(); |
cimClass = container.getClass(); |
| |
_normalizer = |
|
ObjectNormalizer( |
|
cimClass, |
|
request->localOnly, |
|
request->includeQualifiers, |
|
request->includeClassOrigin); |
|
} | } |
catch(Exception &) | catch(Exception &) |
{ | { |
// Do nothing. Container is missing, which implies normalization is disabled | // Do nothing. Container is missing, which implies normalization is disabled |
// for this operation. | // for this operation. |
} | } |
|
|
|
_normalizer = |
|
ObjectNormalizer( |
|
cimClass, |
|
request->localOnly, |
|
request->includeQualifiers, |
|
request->includeClassOrigin); |
#endif | #endif |
} | } |
| |
/* |
|
#ifdef PEGASUS_ENABLE_OBJECT_NORMALIZATION | #ifdef PEGASUS_ENABLE_OBJECT_NORMALIZATION |
virtual void deliver(const CIMInstance & cimInstance) | virtual void deliver(const CIMInstance & cimInstance) |
{ | { |
|
|
SimpleInstanceResponseHandler::deliver(_normalizer.processInstance(cimInstance)); | SimpleInstanceResponseHandler::deliver(_normalizer.processInstance(cimInstance)); |
} | } |
#endif | #endif |
*/ |
|
| |
virtual String getClass(void) const | virtual String getClass(void) const |
{ | { |
|
|
// Attempt to get the cached class definition used to validate results of this | // Attempt to get the cached class definition used to validate results of this |
// operation. If it does not exist, then this feature is disabled for this | // operation. If it does not exist, then this feature is disabled for this |
// operation. | // operation. |
|
CIMClass cimClass; |
|
|
try | try |
{ | { |
CachedClassDefinitionContainer container = | CachedClassDefinitionContainer container = |
request->operationContext.get(CachedClassDefinitionContainer::NAME); | request->operationContext.get(CachedClassDefinitionContainer::NAME); |
| |
CIMClass cimClass = container.getClass(); |
cimClass = container.getClass(); |
|
} |
|
catch(Exception &) |
|
{ |
|
// Do nothing. Container is missing, which implies normalization is disabled |
|
// for this operation. |
|
} |
| |
_normalizer = | _normalizer = |
ObjectNormalizer( | ObjectNormalizer( |
|
|
request->localOnly, | request->localOnly, |
request->includeQualifiers, | request->includeQualifiers, |
request->includeClassOrigin); | request->includeClassOrigin); |
} |
|
catch(Exception &) |
|
{ |
|
// Do nothing. Container is missing, which implies normalization is disabled |
|
// for this operation. |
|
} |
|
#endif | #endif |
} | } |
| |
/* |
|
#ifdef PEGASUS_ENABLE_OBJECT_NORMALIZATION | #ifdef PEGASUS_ENABLE_OBJECT_NORMALIZATION |
virtual void deliver(const CIMInstance & cimInstance) | virtual void deliver(const CIMInstance & cimInstance) |
{ | { |
|
|
SimpleInstanceResponseHandler::deliver(_normalizer.processInstance(cimInstance)); | SimpleInstanceResponseHandler::deliver(_normalizer.processInstance(cimInstance)); |
} | } |
#endif | #endif |
*/ |
|
| |
virtual String getClass(void) const | virtual String getClass(void) const |
{ | { |
|
|
// Attempt to get the cached class definition used to validate results of this | // Attempt to get the cached class definition used to validate results of this |
// operation. If it does not exist, then this feature is disabled for this | // operation. If it does not exist, then this feature is disabled for this |
// operation. | // operation. |
|
CIMClass cimClass; |
|
|
try | try |
{ | { |
CachedClassDefinitionContainer container = | CachedClassDefinitionContainer container = |
request->operationContext.get(CachedClassDefinitionContainer::NAME); | request->operationContext.get(CachedClassDefinitionContainer::NAME); |
| |
CIMClass cimClass = container.getClass(); |
cimClass = container.getClass(); |
|
} |
|
catch(Exception &) |
|
{ |
|
// Do nothing. Container is missing, which implies normalization is disabled |
|
// for this operation. |
|
} |
| |
_normalizer = | _normalizer = |
ObjectNormalizer( | ObjectNormalizer( |
|
|
false, | false, |
false, | false, |
false); | false); |
} |
|
catch(Exception &) |
|
{ |
|
// Do nothing. Container is missing, which implies normalization is disabled |
|
// for this operation. |
|
} |
|
#endif | #endif |
} | } |
| |
/* |
|
#ifdef PEGASUS_ENABLE_OBJECT_NORMALIZATION | #ifdef PEGASUS_ENABLE_OBJECT_NORMALIZATION |
virtual void deliver(const CIMObjectPath & cimObjectPath) | virtual void deliver(const CIMObjectPath & cimObjectPath) |
{ | { |
|
|
SimpleObjectPathResponseHandler::deliver(_normalizer.processInstanceObjectPath(cimObjectPath)); | SimpleObjectPathResponseHandler::deliver(_normalizer.processInstanceObjectPath(cimObjectPath)); |
} | } |
#endif | #endif |
*/ |
|
| |
virtual String getClass(void) const | virtual String getClass(void) const |
{ | { |
|
|
msg.cimObjects = getObjects(); | msg.cimObjects = getObjects(); |
} | } |
| |
// this handler will not send async |
|
virtual Boolean isAsync(void) const | virtual Boolean isAsync(void) const |
{ | { |
return(false); | return(false); |
|
|
return(String("EnableIndicationsResponseHandler")); | return(String("EnableIndicationsResponseHandler")); |
} | } |
| |
// this handler will not send async |
|
virtual Boolean isAsync(void) const | virtual Boolean isAsync(void) const |
{ | { |
return(false); | return(false); |