(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.19 and 1.20

version 1.19, 2006/08/30 20:42:30 version 1.20, 2006/09/01 17:38:20
Line 29 
Line 29 
 // //
 //============================================================================== //==============================================================================
 // //
 // Author: Chip Vincent (cvincent@us.ibm.com)  
 //  
 // Modified By:  
 //         Brian G. Campbell, EMC (campbell_brian@emc.com) - PEP140/phase2  
 //         Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)  
 //  
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
 #include "OperationResponseHandler.h" #include "OperationResponseHandler.h"
Line 138 
Line 132 
 // to go through. Only operation classes have a response pointer // to go through. Only operation classes have a response pointer
 void OperationResponseHandler::send(Boolean isComplete) void OperationResponseHandler::send(Boolean isComplete)
 { {
         // some handlers do not send async because their callers cannot handle      // It is possible to instantiate this class directly (not a derived
         // partial responses. If this is the case, stop here.      // class, which would also inherit from SimpleResponseHandler).
       // The caller would do this only if the operation does not have any
         if (isAsync() == false)      // data to be returned.
         {  
                 // preserve tradional behavior      SimpleResponseHandler* simpleP =
                 if (isComplete == true)          dynamic_cast<SimpleResponseHandler*>(this);
       if (simpleP == 0)
         {         {
             transfer();          // if there is no data to be returned, then the message should NEVER be
         }          // incomplete (even on an error)
           PEGASUS_ASSERT(isComplete);
         return;         return;
         }         }
  
         SimpleResponseHandler *simpleP = dynamic_cast<SimpleResponseHandler*>(this);      // some handlers do not send async because their callers cannot handle
       // partial responses. If this is the case, stop here.
         // It is possible to instantiate this class directly (not derived)  
         // The caller would do this only if the operation does not have any data to  
         // be returned  
  
         if (! simpleP)      if (!isAsync())
         {         {
                 // if there is no data to be returned, then the message should NEVER be          // preserve traditional behavior
                 // incomplete (even on an error)          if (isComplete)
                 if (isComplete == false)          {
               if (_response != 0)
         {         {
             PEGASUS_ASSERT(false);                  _response->operationContext.set(
                       ContentLanguageListContainer(simpleP->getLanguages()));
               }
               transfer();
         }         }
  
         return;         return;


Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2