(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.1 and 1.3

version 1.1, 2004/03/04 09:55:38 version 1.3, 2004/10/25 18:26:00
Line 1 
Line 1 
 //%2003////////////////////////////////////////////////////////////////////////  //%2004////////////////////////////////////////////////////////////////////////
 // //
 // 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.
 // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.; // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.;
 // 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.;
   // 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 26 
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.1  
changed lines
  Added in v.1.3

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2