version 1.58, 2002/09/13 21:40:42
|
version 1.61, 2003/03/10 20:02:08
|
|
|
#include <Pegasus/Common/CIMObjectPath.h> | #include <Pegasus/Common/CIMObjectPath.h> |
#include <Pegasus/Common/CIMPropertyList.h> | #include <Pegasus/Common/CIMPropertyList.h> |
#include <Pegasus/Common/CIMParamValue.h> | #include <Pegasus/Common/CIMParamValue.h> |
|
#include <Pegasus/Common/Message.h> |
#include <Pegasus/Common/Linkage.h> | #include <Pegasus/Common/Linkage.h> |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
|
|
| |
static void appendSpecial(Array<Sint8>& out, const String& str); | static void appendSpecial(Array<Sint8>& out, const String& str); |
| |
|
static String encodeURICharacters(Array<Sint8> uriString); |
|
static String encodeURICharacters(String uriString); |
|
|
static void appendLocalNameSpacePathElement( | static void appendLocalNameSpacePathElement( |
Array<Sint8>& out, | Array<Sint8>& out, |
const CIMNamespaceName& nameSpace); | const CIMNamespaceName& nameSpace); |
|
|
const CIMName& cimMethod, | const CIMName& cimMethod, |
const String& cimObject, | const String& cimObject, |
const String& authenticationHeader, | const String& authenticationHeader, |
|
HttpMethod httpMethod, |
Uint32 contentLength); | Uint32 contentLength); |
| |
static void appendMethodResponseHeader( | static void appendMethodResponseHeader( |
Array<Sint8>& out, | Array<Sint8>& out, |
|
HttpMethod httpMethod, |
Uint32 contentLength); | Uint32 contentLength); |
| |
static void appendHttpErrorResponseHeader( | static void appendHttpErrorResponseHeader( |
|
|
const CIMName& methodName, | const CIMName& methodName, |
const Array<CIMParamValue>& parameters, | const Array<CIMParamValue>& parameters, |
const String& messageId, | const String& messageId, |
|
HttpMethod httpMethod, |
const String& authenticationHeader); | const String& authenticationHeader); |
| |
static Array<Sint8> formatSimpleMethodRspMessage( | static Array<Sint8> formatSimpleMethodRspMessage( |
const CIMName& methodName, | const CIMName& methodName, |
const String& messageId, | const String& messageId, |
|
HttpMethod httpMethod, |
const Array<Sint8>& body); | const Array<Sint8>& body); |
| |
static Array<Sint8> formatSimpleMethodErrorRspMessage( | static Array<Sint8> formatSimpleMethodErrorRspMessage( |
const CIMName& methodName, | const CIMName& methodName, |
const String& messageId, | const String& messageId, |
|
HttpMethod httpMethod, |
const CIMException& cimException); | const CIMException& cimException); |
| |
static Array<Sint8> formatSimpleIMethodReqMessage( | static Array<Sint8> formatSimpleIMethodReqMessage( |
|
|
const CIMNamespaceName& nameSpace, | const CIMNamespaceName& nameSpace, |
const CIMName& iMethodName, | const CIMName& iMethodName, |
const String& messageId, | const String& messageId, |
|
HttpMethod httpMethod, |
const String& authenticationHeader, | const String& authenticationHeader, |
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, |
const Array<Sint8>& body); | const Array<Sint8>& body); |
| |
static Array<Sint8> formatSimpleIMethodErrorRspMessage( | static Array<Sint8> formatSimpleIMethodErrorRspMessage( |
const CIMName& iMethodName, | const CIMName& iMethodName, |
const String& messageId, | const String& messageId, |
|
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, |
const char* host, | const char* host, |
const CIMName& cimMethod, | const CIMName& cimMethod, |
|
HttpMethod httpMethod, |
const String& authenticationHeader, | const String& authenticationHeader, |
Uint32 contentLength); | Uint32 contentLength); |
| |
static void appendEMethodResponseHeader( | static void appendEMethodResponseHeader( |
Array<Sint8>& out, | Array<Sint8>& out, |
|
HttpMethod httpMethod, |
Uint32 contentLength); | Uint32 contentLength); |
| |
static Array<Sint8> formatSimpleEMethodReqMessage( | static Array<Sint8> formatSimpleEMethodReqMessage( |
|
|
const char* host, | const char* host, |
const CIMName& eMethodName, | const CIMName& eMethodName, |
const String& messageId, | const String& messageId, |
|
HttpMethod httpMethod, |
const String& authenticationHeader, | const String& authenticationHeader, |
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, |
const Array<Sint8>& body); | const Array<Sint8>& body); |
| |
static Array<Sint8> formatSimpleEMethodErrorRspMessage( | static Array<Sint8> formatSimpleEMethodErrorRspMessage( |
const CIMName& eMethodName, | const CIMName& eMethodName, |
const String& messageId, | const String& messageId, |
|
HttpMethod httpMethod, |
const CIMException& cimException); | const CIMException& cimException); |
| |
static void indentedPrint( | static void indentedPrint( |
|
|
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); |
| |