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

Diff for /pegasus/src/Pegasus/ProviderManager2/SimpleResponseHandler.cpp between version 1.2 and 1.3

version 1.2, 2004/10/17 20:40:01 version 1.3, 2004/10/25 18:26:00
Line 28 
Line 28 
 // Author: Chip Vincent (cvincent@us.ibm.com) // Author: Chip Vincent (cvincent@us.ibm.com)
 // //
 // Modified By: // Modified By:
   //         Brian G. Campbell, EMC (campbell_brian@emc.com) - PEP140/phase2
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
 #include "SimpleResponseHandler.h"  #include "OperationResponseHandler.h"
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
   void SimpleResponseHandler::send(Boolean isComplete)
   {
           // If this was NOT instantiated as a derived OperationResponseHandle class,
           // then this will be null but is NOT an error. In this case, there is no
           // response attached, hence no data,so there is nothing to send. else we have
           // a valid "cross-cast" to the operation side
   
           OperationResponseHandler *operation =
                   dynamic_cast<OperationResponseHandler*>(this);
   
           if (operation)
                   operation->send(isComplete);
   }
   
   
   ContentLanguages SimpleResponseHandler::getLanguages(void)
   {
           Logger::put(Logger::STANDARD_LOG, System::CIMSERVER, Logger::TRACE,
                                                           "SimpleResponseHandler: getLanguages()");
   
           ContentLanguages langs;
           try
           {
                   // Try to get the ContentLanguages out of the OperationContext
                   // in the base ResponseHandler.
                   OperationContext context = getContext();
                   ContentLanguageListContainer cntr = context.get
                           (ContentLanguageListContainer::NAME);
                   langs = cntr.getLanguages();
           }
           catch (const Exception &)
           {
                   // The content language container must not exist.
                   // Return the empty ContentLanguages.
           }
   
           return langs;
   }
   
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2