(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.7 and 1.11.8.1

version 1.7, 2005/03/23 17:58:02 version 1.11.8.1, 2005/12/30 22:01:03
Line 51 
Line 51 
     CIMResponseMessage *response)     CIMResponseMessage *response)
     : _request(request),     : _request(request),
     _response(response),     _response(response),
     _responseMessageTotal(0),  
     _responseObjectTotal(0),     _responseObjectTotal(0),
       _responseMessageTotal(0),
         _responseObjectThreshold(0)         _responseObjectThreshold(0)
 { {
 #ifndef PEGASUS_RESPONSE_OBJECT_COUNT_THRESHOLD #ifndef PEGASUS_RESPONSE_OBJECT_COUNT_THRESHOLD
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 309 
Line 317 
         throw CIMException(CIM_ERR_FAILED, message);         throw CIMException(CIM_ERR_FAILED, message);
     }     }
  
       if(SimpleInstanceResponseHandler::size() != 0)
       {
           MessageLoaderParms message(
               "Server.OperationResponseHandler.TOO_MANY_OBJECTS_DELIVERED",
               "Too many objects delivered.");
   
           throw CIMException(CIM_ERR_FAILED, message);
       }
   
     #ifdef PEGASUS_ENABLE_OBJECT_NORMALIZATION     #ifdef PEGASUS_ENABLE_OBJECT_NORMALIZATION
     // The normalizer expects an object path embedded in instances even     // The normalizer expects an object path embedded in instances even
     // though it is not required by this operation. Use the requested     // though it is not required by this operation. Use the requested
Line 327 
Line 344 
     #endif     #endif
 } }
  
   void GetInstanceResponseHandler::complete(void)
   {
       if(SimpleInstanceResponseHandler::size() == 0)
       {
           MessageLoaderParms message(
               "Server.OperationResponseHandler.TOO_FEW_OBJECTS_DELIVERED",
               "Too few objects delivered.");
   
           throw CIMException(CIM_ERR_FAILED, message);
       }
   
       SimpleInstanceResponseHandler::complete();
   }
   
 String GetInstanceResponseHandler::getClass(void) const String GetInstanceResponseHandler::getClass(void) const
 { {
     return(String("GetInstanceResponseHandler"));     return(String("GetInstanceResponseHandler"));
Line 367 
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 374 
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 385 
Line 422 
         ObjectNormalizer(         ObjectNormalizer(
             cimClass,             cimClass,
             request->includeQualifiers,             request->includeQualifiers,
             request->includeClassOrigin);              request->includeClassOrigin,
               request->nameSpace,
               repository);
     #endif     #endif
 } }
  
Line 434 
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 441 
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 452 
Line 497 
         ObjectNormalizer(         ObjectNormalizer(
             cimClass,             cimClass,
             false,             false,
             false);              false,
               request->nameSpace,
               repository);
     #endif     #endif
 } }
  
Line 509 
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)
   {
       if(SimpleObjectPathResponseHandler::size() == 0)
       {
           MessageLoaderParms message(
               "Server.OperationResponseHandler.TOO_FEW_OBJECTS_DELIVERED",
               "Too few objects delivered.");
   
           throw CIMException(CIM_ERR_FAILED, message);
       }
   
       SimpleObjectPathResponseHandler::complete();
   }
   
 String CreateInstanceResponseHandler::getClass(void) const String CreateInstanceResponseHandler::getClass(void) const
 { {
     return(String("CreateInstanceResponseHandler"));     return(String("CreateInstanceResponseHandler"));


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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2