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

Diff for /pegasus/src/Pegasus/ProviderManager2/OperationResponseHandler.h between version 1.16 and 1.21

version 1.16, 2005/02/03 18:35:05 version 1.21, 2005/03/10 21:31:48
Line 1 
Line 1 
 //%2004////////////////////////////////////////////////////////////////////////  //%2005////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
 // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
Line 6 
Line 6 
 // IBM Corp.; EMC Corporation, The Open Group. // IBM Corp.; EMC Corporation, The Open Group.
 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
 // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
   // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
   // EMC Corporation; VERITAS Software Corporation; The Open Group.
 // //
 // Permission is hereby granted, free of charge, to any person obtaining a copy // Permission is hereby granted, free of charge, to any person obtaining a copy
 // of this software and associated documentation files (the "Software"), to // of this software and associated documentation files (the "Software"), to
Line 188 
Line 190 
         _normalizer =         _normalizer =
             ObjectNormalizer(             ObjectNormalizer(
                 cimClass,                 cimClass,
                 request->localOnly,  
                 request->includeQualifiers,                 request->includeQualifiers,
                 request->includeClassOrigin);                 request->includeClassOrigin);
         #endif         #endif
     }     }
  
     #ifdef PEGASUS_ENABLE_OBJECT_NORMALIZATION  
     virtual void deliver(const CIMInstance & cimInstance)     virtual void deliver(const CIMInstance & cimInstance)
     {     {
         // Normalize (if seeded, otherwise do nothing) and pass to subclass method for delivery.          if(cimInstance.isUninitialized())
         SimpleInstanceResponseHandler::deliver(_normalizer.processInstance(cimInstance));          {
               MessageLoaderParms message(
                   "Common.Exception.UNINITIALIZED_OBJECT_EXCEPTION",
                   "The object is not initialized.");
   
               throw CIMException(CIM_ERR_FAILED, message);
     }     }
   
           #ifdef PEGASUS_ENABLE_OBJECT_NORMALIZATION
           SimpleInstanceResponseHandler::deliver(_normalizer.processInstance(cimInstance));
           #else
           SimpleInstanceResponseHandler::deliver(cimInstance);
     #endif     #endif
       }
  
   protected:
     virtual String getClass(void) const     virtual String getClass(void) const
     {     {
         return(String("GetInstanceResponseHandler"));         return(String("GetInstanceResponseHandler"));
Line 263 
Line 275 
         _normalizer =         _normalizer =
             ObjectNormalizer(             ObjectNormalizer(
                 cimClass,                 cimClass,
                 request->localOnly,  
                 request->includeQualifiers,                 request->includeQualifiers,
                 request->includeClassOrigin);                 request->includeClassOrigin);
         #endif         #endif
     }     }
  
     #ifdef PEGASUS_ENABLE_OBJECT_NORMALIZATION  
     virtual void deliver(const CIMInstance & cimInstance)     virtual void deliver(const CIMInstance & cimInstance)
     {     {
         // Normalize (if seeded, otherwise do nothing) and pass to subclass method for delivery.          if(cimInstance.isUninitialized())
         SimpleInstanceResponseHandler::deliver(_normalizer.processInstance(cimInstance));          {
               MessageLoaderParms message(
                   "Common.Exception.UNINITIALIZED_OBJECT_EXCEPTION",
                   "The object is not initialized.");
   
               throw CIMException(CIM_ERR_FAILED, message);
     }     }
   
           #ifdef PEGASUS_ENABLE_OBJECT_NORMALIZATION
           SimpleInstanceResponseHandler::deliver(_normalizer.processInstance(cimInstance));
           #else
           SimpleInstanceResponseHandler::deliver(cimInstance);
     #endif     #endif
       }
  
   protected:
     virtual String getClass(void) const     virtual String getClass(void) const
     {     {
         return(String("EnumerateInstancesResponseHandler"));         return(String("EnumerateInstancesResponseHandler"));
Line 326 
Line 348 
             ObjectNormalizer(             ObjectNormalizer(
                 cimClass,                 cimClass,
                 false,                 false,
                 false,  
                 false);                 false);
         #endif         #endif
     }     }
  
     #ifdef PEGASUS_ENABLE_OBJECT_NORMALIZATION  
     virtual void deliver(const CIMObjectPath & cimObjectPath)     virtual void deliver(const CIMObjectPath & cimObjectPath)
     {     {
         // Normalize (if seeded, otherwise do nothing) and pass to subclass method for delivery.          if(cimObjectPath.getClassName().isNull())
         SimpleObjectPathResponseHandler::deliver(_normalizer.processInstanceObjectPath(cimObjectPath));          {
               MessageLoaderParms message(
                   "Common.Exception.UNINITIALIZED_OBJECT_EXCEPTION",
                   "The object is not initialized.");
   
               throw CIMException(CIM_ERR_FAILED, message);
     }     }
   
           #ifdef PEGASUS_ENABLE_OBJECT_NORMALIZATION
           SimpleObjectPathResponseHandler::deliver(_normalizer.processInstanceObjectPath(cimObjectPath));
           #else
           SimpleObjectPathResponseHandler::deliver(cimObjectPath);
     #endif     #endif
       }
  
   protected:
     virtual String getClass(void) const     virtual String getClass(void) const
     {     {
         return(String("EnumerateInstanceNamesResponseHandler"));         return(String("EnumerateInstanceNamesResponseHandler"));
Line 367 
Line 399 
     {     {
     }     }
  
   protected:
     virtual String getClass(void) const     virtual String getClass(void) const
     {     {
         return(String("CreateInstanceResponseHandler"));         return(String("CreateInstanceResponseHandler"));
Line 405 
Line 438 
     {     {
     }     }
  
   protected:
     virtual String getClass(void) const     virtual String getClass(void) const
     {     {
         return(String("ModifyInstanceResponseHandler"));         return(String("ModifyInstanceResponseHandler"));
     }     }
   
 }; };
  
 class DeleteInstanceResponseHandler : public OperationResponseHandler, public SimpleResponseHandler class DeleteInstanceResponseHandler : public OperationResponseHandler, public SimpleResponseHandler
Line 422 
Line 455 
     {     {
     }     }
  
   protected:
     virtual String getClass(void) const     virtual String getClass(void) const
     {     {
         return(String("DeleteInstanceResponseHandler"));         return(String("DeleteInstanceResponseHandler"));
Line 439 
Line 473 
     {     {
     }     }
  
   protected:
     virtual String getClass(void) const     virtual String getClass(void) const
     {     {
         return(String("GetPropertyResponseHandler"));         return(String("GetPropertyResponseHandler"));
Line 476 
Line 511 
     {     {
     }     }
  
   protected:
     virtual String getClass(void) const     virtual String getClass(void) const
     {     {
         return(String("SetPropertyResponseHandler"));         return(String("SetPropertyResponseHandler"));
Line 493 
Line 529 
     {     {
     }     }
  
   protected:
     virtual String getClass(void) const     virtual String getClass(void) const
     {     {
         return(String("ExecQueryResponseHandler"));         return(String("ExecQueryResponseHandler"));
Line 522 
Line 559 
     {     {
     }     }
  
   protected:
     virtual String getClass(void) const     virtual String getClass(void) const
     {     {
         return(String("AssociatorsResponseHandler"));         return(String("AssociatorsResponseHandler"));
Line 546 
Line 584 
     {     {
     }     }
  
   protected:
     virtual String getClass(void) const     virtual String getClass(void) const
     {     {
         return(String("AssociatorNamesResponseHandler"));         return(String("AssociatorNamesResponseHandler"));
Line 570 
Line 609 
     {     {
     }     }
  
   protected:
     virtual String getClass(void) const     virtual String getClass(void) const
     {     {
         return(String("ReferencesResponseHandler"));         return(String("ReferencesResponseHandler"));
Line 594 
Line 634 
     {     {
     }     }
  
   protected:
     virtual String getClass(void) const     virtual String getClass(void) const
     {     {
         return(String("ReferenceNamesResponseHandler"));         return(String("ReferenceNamesResponseHandler"));
Line 618 
Line 659 
     {     {
     }     }
  
   protected:
     virtual String getClass(void) const     virtual String getClass(void) const
     {     {
         return(String("InvokeMethodResponseHandler"));         return(String("InvokeMethodResponseHandler"));
Line 643 
Line 685 
 { {
 public: public:
     EnableIndicationsResponseHandler(     EnableIndicationsResponseHandler(
         CIMEnableIndicationsRequestMessage * request,          CIMRequestMessage * request,
         CIMEnableIndicationsResponseMessage * response,          CIMResponseMessage * response,
         CIMInstance & provider,         CIMInstance & provider,
         PEGASUS_INDICATION_CALLBACK indicationCallback)         PEGASUS_INDICATION_CALLBACK indicationCallback)
     : OperationResponseHandler(request, response),     : OperationResponseHandler(request, response),
         _request_copy(*request),  
         _response_copy(*response),  
         _indicationCallback(indicationCallback)         _indicationCallback(indicationCallback)
     {     {
         _provider = provider;         _provider = provider;
     }     }
  
     virtual String getClass(void) const  
     {  
         return(String("EnableIndicationsResponseHandler"));  
     }  
   
     virtual Boolean isAsync(void) const  
     {  
         return(false);  
     }  
   
     virtual void deliver(const CIMIndication & cimIndication)     virtual void deliver(const CIMIndication & cimIndication)
     {     {
         OperationContext context;         OperationContext context;
Line 756 
Line 786 
         }         }
     }     }
  
   protected:
       virtual String getClass(void) const
       {
           return(String("EnableIndicationsResponseHandler"));
       }
   
       virtual Boolean isAsync(void) const
       {
           return(false);
       }
   
 private: private:
     CIMEnableIndicationsRequestMessage _request_copy;  
     CIMEnableIndicationsResponseMessage _response_copy;  
     PEGASUS_INDICATION_CALLBACK _indicationCallback;     PEGASUS_INDICATION_CALLBACK _indicationCallback;
  
 }; };


Legend:
Removed from v.1.16  
changed lines
  Added in v.1.21

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2