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

Diff for /pegasus/src/Pegasus/Common/XmlWriter.h between version 1.60 and 1.66

version 1.60, 2003/03/06 22:46:04 version 1.66, 2004/05/01 15:29:37
Line 1 
Line 1 
 //%/////////////////////////////////////////////////////////////////////////////  //%2003////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,  // Copyright (c) 2000, 2001, 2002  BMC Software, Hewlett-Packard Development
 // 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.;
   // IBM Corp.; EMC 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 55 
Line 57 
 #include <Pegasus/Common/CIMParamValue.h> #include <Pegasus/Common/CIMParamValue.h>
 #include <Pegasus/Common/Message.h> #include <Pegasus/Common/Message.h>
 #include <Pegasus/Common/Linkage.h> #include <Pegasus/Common/Linkage.h>
   #include <Pegasus/Common/ContentLanguages.h>  // l10n
   #include <Pegasus/Common/AcceptLanguages.h>   // l10n
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
   // l10n - added accept language and content language support below
   
 class PEGASUS_COMMON_LINKAGE XmlWriter class PEGASUS_COMMON_LINKAGE XmlWriter
 { {
 public: public:
Line 66 
Line 72 
  
     static void append(Array<Sint8>& out, char x)     static void append(Array<Sint8>& out, char x)
     {     {
         append(out, Char16(x));        out.append(x);
     }     }
  
     static void append(Array<Sint8>& out, Boolean x);     static void append(Array<Sint8>& out, Boolean x);
Line 79 
Line 85 
  
     static void append(Array<Sint8>& out, Sint64 x);     static void append(Array<Sint8>& out, Sint64 x);
  
       static void append(Array<Sint8>& out, Real32 x);
   
     static void append(Array<Sint8>& out, Real64 x);     static void append(Array<Sint8>& out, Real64 x);
  
     static void append(Array<Sint8>& out, const char* str);     static void append(Array<Sint8>& out, const char* str);
Line 243 
Line 251 
         const String& cimObject,         const String& cimObject,
         const String& authenticationHeader,         const String& authenticationHeader,
         HttpMethod httpMethod,         HttpMethod httpMethod,
       const AcceptLanguages & acceptLanguages,
       const ContentLanguages & contentLanguages,
         Uint32 contentLength);         Uint32 contentLength);
  
     static void appendMethodResponseHeader(     static void appendMethodResponseHeader(
         Array<Sint8>& out,         Array<Sint8>& out,
         HttpMethod httpMethod,         HttpMethod httpMethod,
       const ContentLanguages & contentLanguages,
         Uint32 contentLength);         Uint32 contentLength);
  
     static void appendHttpErrorResponseHeader(     static void appendHttpErrorResponseHeader(
Line 260 
Line 271 
         Array<Sint8>& out,         Array<Sint8>& out,
         const String& content);         const String& content);
  
   #ifdef PEGASUS_KERBEROS_AUTHENTICATION
       static void appendOKResponseHeader(
           Array<Sint8>& out,
           const String& content);
   #endif
   
     static void appendReturnValueElement(     static void appendReturnValueElement(
         Array<Sint8>& out,         Array<Sint8>& out,
         const CIMValue& value);         const CIMValue& value);
Line 340 
Line 357 
         const Array<CIMParamValue>& parameters,         const Array<CIMParamValue>& parameters,
         const String& messageId,         const String& messageId,
         HttpMethod httpMethod,         HttpMethod httpMethod,
         const String& authenticationHeader);          const String& authenticationHeader,
       const AcceptLanguages& httpAcceptLanguages,
       const ContentLanguages& httpContentLanguages);
  
     static Array<Sint8> formatSimpleMethodRspMessage(     static Array<Sint8> formatSimpleMethodRspMessage(
         const CIMName& methodName,         const CIMName& methodName,
         const String& messageId,         const String& messageId,
         HttpMethod httpMethod,         HttpMethod httpMethod,
           const ContentLanguages & httpContentLanguages,
         const Array<Sint8>& body);         const Array<Sint8>& body);
  
     static Array<Sint8> formatSimpleMethodErrorRspMessage(     static Array<Sint8> formatSimpleMethodErrorRspMessage(
Line 361 
Line 381 
         const String& messageId,         const String& messageId,
         HttpMethod httpMethod,         HttpMethod httpMethod,
         const String& authenticationHeader,         const String& authenticationHeader,
       const AcceptLanguages& httpAcceptLanguages,
       const ContentLanguages& httpContentLanguages,
         const Array<Sint8>& body);         const Array<Sint8>& body);
  
     static Array<Sint8> formatSimpleIMethodRspMessage(     static Array<Sint8> formatSimpleIMethodRspMessage(
         const CIMName& iMethodName,         const CIMName& iMethodName,
         const String& messageId,         const String& messageId,
         HttpMethod httpMethod,         HttpMethod httpMethod,
           const ContentLanguages & httpContentLanguages,
         const Array<Sint8>& body);         const Array<Sint8>& body);
  
     static Array<Sint8> formatSimpleIMethodErrorRspMessage(     static Array<Sint8> formatSimpleIMethodErrorRspMessage(
Line 375 
Line 398 
         HttpMethod httpMethod,         HttpMethod httpMethod,
         const CIMException& cimException);         const CIMException& cimException);
  
       static void appendInstanceEParameter(
           Array<Sint8>& out,
           const char* name,
           const CIMInstance& instance);
   
     static void appendEMethodRequestHeader(     static void appendEMethodRequestHeader(
         Array<Sint8>& out,         Array<Sint8>& out,
         const char* requestUri,         const char* requestUri,
Line 382 
Line 410 
         const CIMName& cimMethod,         const CIMName& cimMethod,
         HttpMethod httpMethod,         HttpMethod httpMethod,
         const String& authenticationHeader,         const String& authenticationHeader,
       const AcceptLanguages& acceptLanguages,
       const ContentLanguages& contentLanguages,
         Uint32 contentLength);         Uint32 contentLength);
  
     static void appendEMethodResponseHeader(     static void appendEMethodResponseHeader(
         Array<Sint8>& out,         Array<Sint8>& out,
         HttpMethod httpMethod,         HttpMethod httpMethod,
       const ContentLanguages& contentLanguages,
         Uint32 contentLength);         Uint32 contentLength);
  
     static Array<Sint8> formatSimpleEMethodReqMessage(     static Array<Sint8> formatSimpleEMethodReqMessage(
Line 396 
Line 427 
         const String& messageId,         const String& messageId,
         HttpMethod httpMethod,         HttpMethod httpMethod,
         const String& authenticationHeader,         const String& authenticationHeader,
       const AcceptLanguages& httpAcceptLanguages,
       const ContentLanguages& httpContentLanguages,
         const Array<Sint8>& body);         const Array<Sint8>& body);
  
     static Array<Sint8> formatSimpleEMethodRspMessage(     static Array<Sint8> formatSimpleEMethodRspMessage(
         const CIMName& eMethodName,         const CIMName& eMethodName,
         const String& messageId,         const String& messageId,
         HttpMethod httpMethod,         HttpMethod httpMethod,
       const ContentLanguages& httpContentLanguages,
         const Array<Sint8>& body);         const Array<Sint8>& body);
  
     static Array<Sint8> formatSimpleEMethodErrorRspMessage(     static Array<Sint8> formatSimpleEMethodErrorRspMessage(
Line 482 
Line 516 
     static void _appendEMethodCallElementEnd(     static void _appendEMethodCallElementEnd(
         Array<Sint8>& out);         Array<Sint8>& out);
  
       static void _appendEParamValueElementBegin(
           Array<Sint8>& out,
           const char* name);
       static void _appendEParamValueElementEnd(
           Array<Sint8>& out);
   
     static void _appendSimpleExportRspElementBegin(Array<Sint8>& out);     static void _appendSimpleExportRspElementBegin(Array<Sint8>& out);
     static void _appendSimpleExportRspElementEnd(Array<Sint8>& out);     static void _appendSimpleExportRspElementEnd(Array<Sint8>& out);
  


Legend:
Removed from v.1.60  
changed lines
  Added in v.1.66

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2