version 1.22, 2005/03/11 01:51:56
|
version 1.24, 2005/03/13 00:08:47
|
|
|
#define Pegasus_OperationResponseHandler_h | #define Pegasus_OperationResponseHandler_h |
| |
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
#include <Pegasus/Server/Linkage.h> |
|
#include <Pegasus/Common/CIMMessage.h> | #include <Pegasus/Common/CIMMessage.h> |
#include <Pegasus/Common/MessageQueueService.h> | #include <Pegasus/Common/MessageQueueService.h> |
#include <Pegasus/Common/Constants.h> | #include <Pegasus/Common/Constants.h> |
|
|
} | } |
| |
#ifdef PEGASUS_ENABLE_OBJECT_NORMALIZATION | #ifdef PEGASUS_ENABLE_OBJECT_NORMALIZATION |
SimpleInstanceResponseHandler::deliver(_normalizer.processInstance(cimInstance)); |
// The normalizer expects an object path embedded in instances even |
|
// though it is not required by this operation. Use the requested |
|
// object path is missing from the instance. |
|
CIMInstance localInstance(cimInstance); |
|
|
|
if(localInstance.getPath().getKeyBindings().size() == 0) |
|
{ |
|
// ATTN: should clone before modification |
|
localInstance.setPath(static_cast<CIMGetInstanceRequestMessage *>(getRequest())->instanceName); |
|
} |
|
|
|
SimpleInstanceResponseHandler::deliver(_normalizer.processInstance(localInstance)); |
#else | #else |
SimpleInstanceResponseHandler::deliver(cimInstance); | SimpleInstanceResponseHandler::deliver(cimInstance); |
#endif | #endif |