version 1.63, 2003/08/02 18:59:14
|
version 1.69, 2004/10/17 20:39:18
|
|
|
//%///////////////////////////////////////////////////////////////////////////// |
//%2004//////////////////////////////////////////////////////////////////////// |
// | // |
// 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. |
|
// 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 |
|
|
// Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) | // Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) |
// Carol Ann Krug Graves, Hewlett-Packard Company | // Carol Ann Krug Graves, Hewlett-Packard Company |
// (carolann_graves@hp.com) | // (carolann_graves@hp.com) |
|
// Brian G. Campbell, EMC (campbell_brian@emc.com) - PEP140/phase1 |
|
// Willis White (whiwill@us.ibm.com) PEP 127 and 128 |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
| |
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); |
|
|
| |
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); |
|
|
const ContentLanguages & contentLanguages, | const ContentLanguages & contentLanguages, |
Uint32 contentLength); | Uint32 contentLength); |
| |
|
// added to accommidate sending WBEMServerResponseTime PEP #128 |
|
static void appendMethodResponseHeader( |
|
Array<Sint8>& out, |
|
HttpMethod httpMethod, |
|
const ContentLanguages & contentLanguages, |
|
Uint32 contentLength, |
|
Uint64 serverResponseTime); |
|
|
static void appendHttpErrorResponseHeader( | static void appendHttpErrorResponseHeader( |
Array<Sint8>& out, | Array<Sint8>& out, |
const String& status, | const String& status, |
|
|
const String& messageId, | const String& messageId, |
HttpMethod httpMethod, | HttpMethod httpMethod, |
const ContentLanguages & httpContentLanguages, | const ContentLanguages & httpContentLanguages, |
const Array<Sint8>& body); |
const Array<Sint8>& body, |
|
Boolean isFirst = true, |
|
Boolean isLast = true); |
|
|
|
//PEP 128 - sending serverResponseTime (WBEMServerResponseTime) in respons header |
|
static Array<Sint8> formatSimpleMethodRspMessage( |
|
const CIMName& methodName, |
|
const String& messageId, |
|
HttpMethod httpMethod, |
|
const ContentLanguages & httpContentLanguages, |
|
const Array<Sint8>& body, |
|
Uint64 serverResponseTime, |
|
Boolean isFirst = true, |
|
Boolean isLast = true); |
| |
static Array<Sint8> formatSimpleMethodErrorRspMessage( | static Array<Sint8> formatSimpleMethodErrorRspMessage( |
const CIMName& methodName, | const CIMName& methodName, |
|
|
const String& messageId, | const String& messageId, |
HttpMethod httpMethod, | HttpMethod httpMethod, |
const ContentLanguages & httpContentLanguages, | const ContentLanguages & httpContentLanguages, |
const Array<Sint8>& body); |
const Array<Sint8>& body, |
|
Boolean isFirst = true, |
|
Boolean isLast = true); |
|
|
|
//PEP 128 - sending serverResponseTime (WBEMServerResponseTime) in respons header |
|
static Array<Sint8> formatSimpleIMethodRspMessage( |
|
const CIMName& iMethodName, |
|
const String& messageId, |
|
HttpMethod httpMethod, |
|
const ContentLanguages & httpContentLanguages, |
|
const Array<Sint8>& body, |
|
Uint64 serverResponseTime, |
|
Boolean isFirst = true, |
|
Boolean isLast = true); |
| |
static Array<Sint8> formatSimpleIMethodErrorRspMessage( | static Array<Sint8> formatSimpleIMethodErrorRspMessage( |
const CIMName& iMethodName, | const CIMName& iMethodName, |