version 1.9, 2005/03/23 20:59:49
|
version 1.11.8.1, 2005/12/30 22:01:03
|
|
|
// operation. | // operation. |
CIMClass cimClass; | CIMClass cimClass; |
| |
|
CIMRepository * repository = 0; |
|
|
try | try |
{ | { |
CachedClassDefinitionContainer container = | CachedClassDefinitionContainer container = |
request->operationContext.get(CachedClassDefinitionContainer::NAME); | request->operationContext.get(CachedClassDefinitionContainer::NAME); |
| |
cimClass = container.getClass(); | cimClass = container.getClass(); |
|
#ifdef PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
|
RepositoryContainer repContainer = |
|
request->operationContext.get(RepositoryContainer::NAME); |
|
repository = repContainer.getRepository(); |
|
#endif //PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
} | } |
catch(Exception &) | catch(Exception &) |
{ | { |
|
|
ObjectNormalizer( | ObjectNormalizer( |
cimClass, | cimClass, |
request->includeQualifiers, | request->includeQualifiers, |
request->includeClassOrigin); |
request->includeClassOrigin, |
|
request->nameSpace, |
|
repository); |
#endif | #endif |
} | } |
| |
|
|
| |
void GetInstanceResponseHandler::complete(void) | void GetInstanceResponseHandler::complete(void) |
{ | { |
if(SimpleInstanceResponseHandler::size() != 0) |
if(SimpleInstanceResponseHandler::size() == 0) |
{ | { |
MessageLoaderParms message( | MessageLoaderParms message( |
"Server.OperationResponseHandler.TOO_FEW_OBJECTS_DELIVERED", | "Server.OperationResponseHandler.TOO_FEW_OBJECTS_DELIVERED", |
|
|
// 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; | CIMClass cimClass; |
|
CIMRepository * repository = 0; |
| |
try | try |
{ | { |
|
|
request->operationContext.get(CachedClassDefinitionContainer::NAME); | request->operationContext.get(CachedClassDefinitionContainer::NAME); |
| |
cimClass = container.getClass(); | cimClass = container.getClass(); |
|
#ifdef PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
|
RepositoryContainer repContainer = |
|
request->operationContext.get(RepositoryContainer::NAME); |
|
repository = repContainer.getRepository(); |
|
#endif // PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
} | } |
catch(Exception &) | catch(Exception &) |
{ | { |
|
|
ObjectNormalizer( | ObjectNormalizer( |
cimClass, | cimClass, |
request->includeQualifiers, | request->includeQualifiers, |
request->includeClassOrigin); |
request->includeClassOrigin, |
|
request->nameSpace, |
|
repository); |
#endif | #endif |
} | } |
| |
|
|
// 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; | CIMClass cimClass; |
|
CIMRepository * repository = 0; |
| |
try | try |
{ | { |
|
|
request->operationContext.get(CachedClassDefinitionContainer::NAME); | request->operationContext.get(CachedClassDefinitionContainer::NAME); |
| |
cimClass = container.getClass(); | cimClass = container.getClass(); |
|
#ifdef PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
|
RepositoryContainer repContainer = |
|
request->operationContext.get(RepositoryContainer::NAME); |
|
repository = repContainer.getRepository(); |
|
#endif // PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
} | } |
catch(Exception &) | catch(Exception &) |
{ | { |
|
|
ObjectNormalizer( | ObjectNormalizer( |
cimClass, | cimClass, |
false, | false, |
false); |
false, |
|
request->nameSpace, |
|
repository); |
#endif | #endif |
} | } |
| |
|
|
throw CIMException(CIM_ERR_FAILED, message); | throw CIMException(CIM_ERR_FAILED, message); |
} | } |
| |
|
if(SimpleObjectPathResponseHandler::size() != 0) |
|
{ |
|
MessageLoaderParms message( |
|
"Server.OperationResponseHandler.TOO_MANY_OBJECTS_DELIVERED", |
|
"Too many objects delivered."); |
|
|
|
throw CIMException(CIM_ERR_FAILED, message); |
|
} |
|
|
SimpleObjectPathResponseHandler::deliver(cimObjectPath); | SimpleObjectPathResponseHandler::deliver(cimObjectPath); |
} | } |
| |
void CreateInstanceResponseHandler::complete(void) | void CreateInstanceResponseHandler::complete(void) |
{ | { |
if(SimpleObjectPathResponseHandler::size() != 0) |
if(SimpleObjectPathResponseHandler::size() == 0) |
{ | { |
MessageLoaderParms message( | MessageLoaderParms message( |
"Server.OperationResponseHandler.TOO_FEW_OBJECTS_DELIVERED", | "Server.OperationResponseHandler.TOO_FEW_OBJECTS_DELIVERED", |