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

Diff for /pegasus/src/Pegasus/Handler/CIMxmlIndicationHandler/CIMxmlIndicationHandler.cpp between version 1.36.2.2 and 1.37

version 1.36.2.2, 2006/03/07 18:45:55 version 1.37, 2006/01/10 19:41:18
Line 1 
Line 1 
 //%2006////////////////////////////////////////////////////////////////////////  //%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 8 
Line 8 
 // 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.; // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 // EMC Corporation; VERITAS Software Corporation; The Open Group. // EMC Corporation; VERITAS Software Corporation; The Open Group.
 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;  
 // EMC Corporation; Symantec 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 105 
Line 103 
             "CIMxmlIndicationHandler::handleIndication()");             "CIMxmlIndicationHandler::handleIndication()");
  
         //get destination for the indication         //get destination for the indication
         Uint32 pos = indicationHandlerInstance.findProperty(          Uint32 pos = indicationHandlerInstance.findProperty(CIMName ("destination"));
                 CIMName ("destination"));  
         if (pos == PEG_NOT_FOUND)         if (pos == PEG_NOT_FOUND)
         {         {
             String msg = _getMalformedExceptionMsg();             String msg = _getMalformedExceptionMsg();
Line 134 
Line 131 
                 "Handler.CIMxmlIndicationHandler.CIMxmlIndicationHandler.ERROR",                 "Handler.CIMxmlIndicationHandler.CIMxmlIndicationHandler.ERROR",
                 "CIMxmlIndicationHandler Error: ");                 "CIMxmlIndicationHandler Error: ");
  
             String msg = String(MessageLoader::getMessage(param) +              String msg = String(MessageLoader::getMessage(param) + e.getMessage());
                 e.getMessage());  
  
             PEG_TRACE_STRING(TRC_IND_HANDLER, Tracer::LEVEL4, msg);             PEG_TRACE_STRING(TRC_IND_HANDLER, Tracer::LEVEL4, msg);
  
Line 149 
Line 145 
  
         try         try
         {         {
             static String PROPERTY_NAME__SSLCERT_FILEPATH =              static String PROPERTY_NAME__SSLCERT_FILEPATH = "sslCertificateFilePath";
                 "sslCertificateFilePath";  
             static String PROPERTY_NAME__SSLKEY_FILEPATH  = "sslKeyFilePath";             static String PROPERTY_NAME__SSLKEY_FILEPATH  = "sslKeyFilePath";
  
             //             //
Line 218 
Line 213 
                         "in Destination " + dest);                         "in Destination " + dest);
  
                     PEG_METHOD_EXIT();                     PEG_METHOD_EXIT();
                     throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED,                      throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED, msg + dest);
                         msg + dest);  
                 }                 }
             }             }
             else             else
Line 260 
Line 254 
                 throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED, msg + dest);                 throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED, msg + dest);
             }             }
  
             bool parseError = false;              char dummy[64];
               dummy[0] = 0;
             colon = destStr.find (":");             colon = destStr.find (":");
   
             //             //
             // get hostname and port number from destination string             // get hostname and port number from destination string
             //             //
Line 269 
Line 265 
             {             {
                 hostStr = destStr.subString (0, colon);                 hostStr = destStr.subString (0, colon);
                 destStr = destStr.subString(colon + 1, PEG_NOT_FOUND);                 destStr = destStr.subString(colon + 1, PEG_NOT_FOUND);
                 String portStr = destStr.subString (0, destStr.find ("/"));  
  
                 char dummy;                  Uint32 slash = destStr.find ("/");
                 int noOfConversions = sscanf(portStr.getCString (), "%u%c",                  String portStr;
                     &portNumber, &dummy);  
                 parseError = (noOfConversions != 1);                  if (slash != PEG_NOT_FOUND)
                   {
                       portStr = destStr.subString (0, slash);
                   }
                   else
                   {
                       portStr = destStr.subString (0, PEG_NOT_FOUND);
                   }
   
                   sscanf (portStr.getCString (), "%u%s", &portNumber, dummy);
             }             }
             //             //
             // There is no port number in the destination string,             // There is no port number in the destination string,
Line 282 
Line 286 
             //             //
             else             else
             {             {
                 hostStr = destStr.subString(0, destStr.find ("/"));                  Uint32 slash = destStr.find ("/");
                   if (slash != PEG_NOT_FOUND)
                   {
                       hostStr = destStr.subString (0, slash);
                   }
                   else
                   {
                       hostStr = destStr.subString (0, PEG_NOT_FOUND);
                   }
                 if (useHttps)                 if (useHttps)
                 {                 {
                      portNumber = System::lookupPort(WBEM_HTTPS_SERVICE_NAME,                      portNumber = System::lookupPort(WBEM_HTTPS_SERVICE_NAME,
Line 296 
Line 308 
             }             }
  
             char hostName[PEGASUS_MAXHOSTNAMELEN];             char hostName[PEGASUS_MAXHOSTNAMELEN];
             if (!parseError)              char dummy2[64];
             {              dummy2[0] = 0;
                 char dummy;  
                 int noOfConversions = sscanf(hostStr.getCString (), "%s%c",              sscanf (hostStr.getCString (), "%s%s", hostName, dummy2);
                     hostName, &dummy);  
                 parseError = (noOfConversions != 1);  
             }  
  
             if (parseError)              if (dummy[0] != 0 || dummy2[0] != 0)
             {             {
                 String msg = _getMalformedExceptionMsg();                 String msg = _getMalformedExceptionMsg();
  


Legend:
Removed from v.1.36.2.2  
changed lines
  Added in v.1.37

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2