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

Diff for /pegasus/src/Pegasus/Common/HTTPMessage.h between version 1.3 and 1.6

version 1.3, 2002/02/25 23:57:07 version 1.6, 2002/04/17 03:47:18
Line 23 
Line 23 
 // //
 // Author: Mike Brasher (mbrasher@bmc.com) // Author: Mike Brasher (mbrasher@bmc.com)
 // //
 // Modified By:  // Modified By: Nag Boranna, Hewlett-Packard Company (nagaraja_boranna@hp.com)
 //              Nag Boranna, Hewlett-Packard Company (nagaraja_boranna@hp.com)  //              Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
Line 43 
Line 43 
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
   #define HTTP_STATUSCODE_OK 200
   #define HTTP_REASONPHRASE_OK "OK"
   
 typedef Pair<String, String> HTTPHeader; typedef Pair<String, String> HTTPHeader;
  
 /** This message is sent from a connection to its output queue when /** This message is sent from a connection to its output queue when
Line 80 
Line 83 
          String& methodName,          String& methodName,
          String& requestUri,          String& requestUri,
          String& httpVersion);          String& httpVersion);
   
         static Boolean parseStatusLine(
            const String& statusLine,
            String& httpVersion,
            Uint32& statusCode,
            String& reasonPhrase);
   };
   
   /**
       This message contains information about an HTTP error response.
   */
   class PEGASUS_COMMON_LINKAGE HTTPErrorMessage : public Message
   {
      public:
         typedef Message Base;
   
         HTTPErrorMessage(
            Uint32 httpStatusCode_,
            const String& cimError_,
            const String& pegasusError_)
            : Message(HTTP_ERROR_MESSAGE),
              httpStatusCode(httpStatusCode_),
              cimError(cimError_),
              pegasusError(pegasusError_)
         { }
   
   
         HTTPErrorMessage(HTTPErrorMessage & msg)
            : Base(msg)
         {
            if( this != &msg)
            {
               httpStatusCode = msg.httpStatusCode;
               const_cast<String &>(cimError) = msg.cimError;
               const_cast<String &>(pegasusError) = msg.pegasusError;
            }
         }
   
         virtual ~HTTPErrorMessage()
         {
         }
   
         Uint32 httpStatusCode;
         const String cimError;
         const String pegasusError;
 }; };
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2