(file) Return to OperationResponseHandler.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / ProviderManager2

Diff for /pegasus/src/Pegasus/ProviderManager2/OperationResponseHandler.cpp between version 1.9 and 1.11.8.1

version 1.9, 2005/03/23 20:59:49 version 1.11.8.1, 2005/12/30 22:01:03
Line 276 
Line 276 
     // 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 &)
     {     {
Line 294 
Line 300 
         ObjectNormalizer(         ObjectNormalizer(
             cimClass,             cimClass,
             request->includeQualifiers,             request->includeQualifiers,
             request->includeClassOrigin);              request->includeClassOrigin,
               request->nameSpace,
               repository);
     #endif     #endif
 } }
  
Line 338 
Line 346 
  
 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",
Line 390 
Line 398 
     // 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
     {     {
Line 397 
Line 406 
             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 &)
     {     {
Line 408 
Line 422 
         ObjectNormalizer(         ObjectNormalizer(
             cimClass,             cimClass,
             request->includeQualifiers,             request->includeQualifiers,
             request->includeClassOrigin);              request->includeClassOrigin,
               request->nameSpace,
               repository);
     #endif     #endif
 } }
  
Line 457 
Line 473 
     // 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
     {     {
Line 464 
Line 481 
             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 &)
     {     {
Line 475 
Line 497 
         ObjectNormalizer(         ObjectNormalizer(
             cimClass,             cimClass,
             false,             false,
             false);              false,
               request->nameSpace,
               repository);
     #endif     #endif
 } }
  
Line 532 
Line 556 
         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",


Legend:
Removed from v.1.9  
changed lines
  Added in v.1.11.8.1

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2