version 1.169.4.8, 2013/09/19 10:56:58
|
version 1.170, 2011/01/25 11:24:24
|
|
|
if (keyBindings[i].getType() == CIMKeyBinding::REFERENCE) | if (keyBindings[i].getType() == CIMKeyBinding::REFERENCE) |
{ | { |
CIMObjectPath ref = keyBindings[i].getValue(); | CIMObjectPath ref = keyBindings[i].getValue(); |
// create an instancePath (i.e. isClassPath = false) |
appendValueReferenceElement(out, ref, true); |
appendValueReferenceElement(out, ref, false, true); |
|
} | } |
else | else |
{ | { |
|
|
out << keyBindingTypeToString(keyBindings[i].getType()); | out << keyBindingTypeToString(keyBindings[i].getType()); |
out << STRLIT("\">"); | out << STRLIT("\">"); |
| |
// fixed the special characters |
// fixed the special character problem - Markus |
| |
appendSpecial(out, keyBindings[i].getValue()); | appendSpecial(out, keyBindings[i].getValue()); |
out << STRLIT("</KEYVALUE>\n"); | out << STRLIT("</KEYVALUE>\n"); |
|
|
// | // |
//------------------------------------------------------------------------------ | //------------------------------------------------------------------------------ |
| |
// appendValueReferenceElement does this correctly with isClassPath flag |
|
// Called only but formatSimple |
|
void XmlWriter::appendLocalObjectPathElement( | void XmlWriter::appendLocalObjectPathElement( |
Buffer& out, | Buffer& out, |
const CIMObjectPath& objectPath) | const CIMObjectPath& objectPath) |
|
|
// distinguish instanceNames from classNames in every case | // distinguish instanceNames from classNames in every case |
// The instanceName of a singleton instance of a keyless class has no | // The instanceName of a singleton instance of a keyless class has no |
// key bindings | // key bindings |
// See bBUG_3302. |
|
// | // |
if (objectPath.getKeyBindings ().size () != 0) | if (objectPath.getKeyBindings ().size () != 0) |
{ | { |
|
|
| |
inline void _xmlWritter_appendValue(Buffer& out, const CIMObjectPath& x) | inline void _xmlWritter_appendValue(Buffer& out, const CIMObjectPath& x) |
{ | { |
// Emit Instance Path with value wrapper |
XmlWriter::appendValueReferenceElement(out, x, true); |
XmlWriter::appendValueReferenceElement(out, x, false, true); |
|
} | } |
| |
inline void _xmlWritter_appendValue(Buffer& out, const CIMObject& x) | inline void _xmlWritter_appendValue(Buffer& out, const CIMObject& x) |
|
|
break; | break; |
} | } |
default: | default: |
PEGASUS_UNREACHABLE(PEGASUS_ASSERT(false);) |
PEGASUS_ASSERT(false); |
} | } |
} | } |
else if (value.getType() == CIMTYPE_REFERENCE) | else if (value.getType() == CIMTYPE_REFERENCE) |
|
|
break; | break; |
} | } |
default: | default: |
PEGASUS_UNREACHABLE(PEGASUS_ASSERT(false);) |
PEGASUS_ASSERT(false); |
} | } |
| |
out << STRLIT("</VALUE>\n"); | out << STRLIT("</VALUE>\n"); |
|
|
const CIMObject& objectWithPath, | const CIMObject& objectWithPath, |
Boolean includeQualifiers, | Boolean includeQualifiers, |
Boolean includeClassOrigin, | Boolean includeClassOrigin, |
Boolean isClassObject, |
|
const CIMPropertyList& propertyList) | const CIMPropertyList& propertyList) |
{ | { |
out << STRLIT("<VALUE.OBJECTWITHPATH>\n"); | out << STRLIT("<VALUE.OBJECTWITHPATH>\n"); |
| |
appendValueReferenceElement(out, objectWithPath.getPath (), |
appendValueReferenceElement(out, objectWithPath.getPath (), false); |
isClassObject , false); |
|
|
|
appendObjectElement( | appendObjectElement( |
out, | out, |
objectWithPath, | objectWithPath, |
|
|
// | // |
//------------------------------------------------------------------------------ | //------------------------------------------------------------------------------ |
| |
// appends INSTANCEPATH | LOCALINSTANCEPATH | INSTANCENAME |
void XmlWriter::appendValueReferenceElement( |
void XmlWriter::appendValueInstancePathElement( |
|
Buffer& out, | Buffer& out, |
const CIMObjectPath& reference) |
const CIMObjectPath& reference, |
|
Boolean putValueWrapper) |
|
{ |
|
if (putValueWrapper) |
|
out << STRLIT("<VALUE.REFERENCE>\n"); |
|
|
|
// See if it is a class or instance reference (instance references have |
|
// key-bindings; class references do not). |
|
// |
|
// ATTN-CAKG-P2-20020726: The following condition does not correctly |
|
// distinguish instanceNames from classNames in every case |
|
// The instanceName of a singleton instance of a keyless class has no |
|
// key bindings |
|
// |
|
|
|
const Array<CIMKeyBinding>& kbs = reference.getKeyBindings(); |
|
|
|
if (kbs.size()) |
{ | { |
if (reference.getHost().size()) | if (reference.getHost().size()) |
{ | { |
|
|
appendInstanceNameElement(out, reference); | appendInstanceNameElement(out, reference); |
} | } |
} | } |
|
else |
// appends CLASSPATH | LOCALCLASSPATH | CLASSNAME |
|
void XmlWriter::appendValueClassPathElement( |
|
Buffer& out, |
|
const CIMObjectPath& reference) |
|
{ | { |
if (reference.getHost().size()) | if (reference.getHost().size()) |
{ | { |
|
|
} | } |
} | } |
| |
// Builds either a classPath or InstancePath based on isClassPath |
if (putValueWrapper) |
// parameter which was carried forward from, for example, the |
|
// request. If wrapper true, wrap output with <VALUE.REFERENCE> |
|
void XmlWriter::appendValueReferenceElement( |
|
Buffer& out, |
|
const CIMObjectPath& reference, |
|
Boolean isClassPath, |
|
Boolean addValueWrapper) |
|
{ |
|
if (addValueWrapper) |
|
{ |
|
out << STRLIT("<VALUE.REFERENCE>\n"); |
|
} |
|
if (isClassPath) |
|
{ |
|
appendValueClassPathElement(out,reference); |
|
} |
|
else |
|
{ |
|
appendValueInstancePathElement(out,reference); |
|
} |
|
|
|
if (addValueWrapper) |
|
{ |
|
out << STRLIT("</VALUE.REFERENCE>\n"); | out << STRLIT("</VALUE.REFERENCE>\n"); |
} | } |
} |
|
| |
void XmlWriter::printValueReferenceElement( | void XmlWriter::printValueReferenceElement( |
const CIMObjectPath& reference, | const CIMObjectPath& reference, |
Boolean isClassPath, |
|
PEGASUS_STD(ostream)& os) | PEGASUS_STD(ostream)& os) |
{ | { |
Buffer tmp; | Buffer tmp; |
appendValueReferenceElement(tmp, reference, isClassPath, true); |
appendValueReferenceElement(tmp, reference, true); |
indentedPrint(os, tmp.getData()); | indentedPrint(os, tmp.getData()); |
} | } |
| |
|
|
out << STRLIT("</VALUE.NAMEDINSTANCE>\n"); | out << STRLIT("</VALUE.NAMEDINSTANCE>\n"); |
} | } |
| |
//EXP_PULL_BEGIN |
|
//------------------------------------------------------------------------------ |
|
// |
|
// appendValueInstanceWithPathElement() |
|
// |
|
// <!ELEMENT VALUE.INSTANCEWITHPATH (INSTANCEPATH,INSTANCE)> |
|
// |
|
//------------------------------------------------------------------------------ |
|
// |
|
void XmlWriter::appendValueInstanceWithPathElement( |
|
Buffer& out, |
|
const CIMInstance& namedInstance, |
|
Boolean includeQualifiers, |
|
Boolean includeClassOrigin, |
|
const CIMPropertyList& propertyList) |
|
{ |
|
out << STRLIT("<VALUE.INSTANCEWITHPATH>\n"); |
|
|
|
appendInstancePathElement(out, namedInstance.getPath ()); |
|
appendInstanceElement( |
|
out, |
|
namedInstance, |
|
includeQualifiers, |
|
includeClassOrigin, |
|
propertyList); |
|
|
|
out << STRLIT("</VALUE.INSTANCEWITHPATH>\n"); |
|
} |
|
//EXP_PULL_END |
|
//------------------------------------------------------------------------------ | //------------------------------------------------------------------------------ |
// | // |
// appendClassElement() | // appendClassElement() |
|
|
// Note that if the macro PEGASUS_SNIA_INTEROP_COMPATIBILITY is | // Note that if the macro PEGASUS_SNIA_INTEROP_COMPATIBILITY is |
// defined, then the EmbeddedInstance qualifier will be added | // defined, then the EmbeddedInstance qualifier will be added |
# ifdef PEGASUS_SNIA_INTEROP_COMPATIBILITY | # ifdef PEGASUS_SNIA_INTEROP_COMPATIBILITY |
if (rep->findQualifier(PEGASUS_QUALIFIERNAME_EMBEDDEDINSTANCE) |
if (rep->findQualifier(PEGASUS_QUALIFIERNAME_EMBEDDEDINSTANCE == |
== PEG_NOT_FOUND) |
PEG_NOT_FOUND) |
{ | { |
// Note that addQualifiers() cannot be called on a const | // Note that addQualifiers() cannot be called on a const |
// CIMQualifierRep. In this case we really do want to add | // CIMQualifierRep. In this case we really do want to add |
|
|
bool binaryRequest, | bool binaryRequest, |
bool binaryResponse) | bool binaryResponse) |
{ | { |
char nn[] = { char('0' + (rand() % 10)), char('0' + (rand() % 10)),'\0'}; |
char nn[] = { '0' + (rand() % 10), '0' + (rand() % 10), '\0' }; |
| |
// ATTN: KS 20020926 - Temporary change to issue only POST. This may | // ATTN: KS 20020926 - Temporary change to issue only POST. This may |
// be changed in the DMTF CIM Operations standard in the future. | // be changed in the DMTF CIM Operations standard in the future. |
|
|
} | } |
else | else |
{ | { |
out << STRLIT("Content-Type: application/xml; charset=utf-8\r\n"); |
out << STRLIT("Content-Type: application/xml; charset=\"utf-8\"\r\n"); |
} | } |
| |
if (binaryResponse) | if (binaryResponse) |
|
|
} | } |
else | else |
{ | { |
out << STRLIT("Content-Type: application/xml; charset=utf-8\r\n"); |
out << STRLIT("Content-Type: application/xml; charset=\"utf-8\"\r\n"); |
} | } |
| |
OUTPUT_CONTENTLENGTH(out, contentLength); | OUTPUT_CONTENTLENGTH(out, contentLength); |
|
|
} | } |
if (httpMethod == HTTP_METHOD_M_POST) | if (httpMethod == HTTP_METHOD_M_POST) |
{ | { |
char nn[] = {char('0'+(rand() % 10)),char('0' + (rand() % 10)),'\0'}; |
char nn[] = { '0' + (rand() % 10), '0' + (rand() % 10), '\0' }; |
| |
out << STRLIT("Ext:\r\n" | out << STRLIT("Ext:\r\n" |
"Cache-Control: no-cache\r\n" | "Cache-Control: no-cache\r\n" |
|
|
// Returns unauthorized message in the following format: | // Returns unauthorized message in the following format: |
// | // |
// HTTP/1.1 401 Unauthorized | // HTTP/1.1 401 Unauthorized |
// PGErrorDetail: <error text> (if specified by caller) |
|
// WWW-Authenticate: Basic realm="HostName" | // WWW-Authenticate: Basic realm="HostName" |
// <HTML><HEAD> | // <HTML><HEAD> |
// <TITLE>401 Unauthorized</TITLE> | // <TITLE>401 Unauthorized</TITLE> |
|
|
| |
void XmlWriter::appendUnauthorizedResponseHeader( | void XmlWriter::appendUnauthorizedResponseHeader( |
Buffer& out, | Buffer& out, |
const String& errorDetail, |
|
const String& content) | const String& content) |
{ | { |
out << STRLIT("HTTP/1.1 " HTTP_STATUS_UNAUTHORIZED "\r\n"); | out << STRLIT("HTTP/1.1 " HTTP_STATUS_UNAUTHORIZED "\r\n"); |
if (errorDetail.size() > 0) |
|
{ |
|
out << STRLIT(PEGASUS_HTTPHEADERTAG_ERRORDETAIL ": ") |
|
<< encodeURICharacters(errorDetail) << STRLIT("\r\n"); |
|
} |
|
|
|
OUTPUT_CONTENTLENGTH(out, 0); | OUTPUT_CONTENTLENGTH(out, 0); |
out << content << STRLIT("\r\n\r\n"); | out << content << STRLIT("\r\n\r\n"); |
| |
|
|
out << STRLIT("</IPARAMVALUE>\n"); | out << STRLIT("</IPARAMVALUE>\n"); |
} | } |
| |
//EXP_PULL_BEGIN |
|
//------------------------------------------------------------------------------ |
|
// |
|
// _appendParamValueElementBegin() |
|
// _appendParamValueElementEnd() |
|
// |
|
// <!ELEMENT IPARAMVALUE (VALUE|VALUE.ARRAY|VALUE.REFERENCE |
|
// |INSTANCENAME|CLASSNAME|QUALIFIER.DECLARATION |
|
// |CLASS|INSTANCE|VALUE.NAMEDINSTANCE)?> |
|
// <!ATTLIST IPARAMVALUE %CIMName;> |
|
// |
|
//------------------------------------------------------------------------------ |
|
|
|
void XmlWriter::_appendParamValueElementBegin( |
|
Buffer& out, |
|
const char* name) |
|
{ |
|
out << STRLIT("<PARAMVALUE NAME=\"") << name << STRLIT("\">\n"); |
|
} |
|
|
|
void XmlWriter::_appendParamValueElementEnd( |
|
Buffer& out) |
|
{ |
|
out << STRLIT("</PARAMVALUE>\n"); |
|
} |
|
//EXP_PULL_END |
|
|
|
//------------------------------------------------------------------------------ | //------------------------------------------------------------------------------ |
// | // |
// _appendSimpleRspElementBegin() | // _appendSimpleRspElementBegin() |
|
|
out << STRLIT("</IRETURNVALUE>\n"); | out << STRLIT("</IRETURNVALUE>\n"); |
} | } |
| |
//EXP_PULL_BEGIN |
|
void XmlWriter::_appendIReturnValueElementWithNameBegin( |
|
Buffer& out, |
|
const char* name) |
|
{ |
|
out << STRLIT("<IRETURNVALUE NAME=\"") << name << STRLIT("\">\n"); |
|
} |
|
//EXP_PULL_END |
|
|
|
//------------------------------------------------------------------------------ | //------------------------------------------------------------------------------ |
// | // |
// appendBooleanIParameter() | // appendBooleanIParameter() |
|
|
_appendIParamValueElementEnd(out); | _appendIParamValueElementEnd(out); |
} | } |
| |
//EXP_PULL_BEGIN |
|
void XmlWriter::appendBooleanParameter( |
|
Buffer& out, |
|
const char* name, |
|
Boolean flag) |
|
{ |
|
_appendParamValueElementBegin(out, name); |
|
out << STRLIT("<VALUE>"); |
|
append(out, flag); |
|
out << STRLIT("</VALUE>\n"); |
|
_appendParamValueElementEnd(out); |
|
} |
|
|
|
void XmlWriter::appendBooleanIReturnValue( |
|
Buffer& out, |
|
const char* name, |
|
Boolean flag) |
|
{ |
|
_appendIReturnValueElementWithNameBegin(out, name); |
|
out << STRLIT("<VALUE>"); |
|
append(out, flag); |
|
out << STRLIT("</VALUE>\n"); |
|
_appendIReturnValueElementEnd(out); |
|
} |
|
void XmlWriter::appendUint32IParameter( |
|
Buffer& out, |
|
const char* name, |
|
Uint32 val) |
|
{ |
|
_appendIParamValueElementBegin(out, name); |
|
out << STRLIT("<VALUE>"); |
|
append(out, val); |
|
out << STRLIT("</VALUE>\n"); |
|
_appendIParamValueElementEnd(out); |
|
} |
|
|
|
// Can be used to generate either parameters with value, |
|
// parameters with NULL (i.e. no value element) or |
|
// no parameters output at all. |
|
void XmlWriter::appendUint32ArgIParameter( |
|
Buffer& out, |
|
const char* name, |
|
const Uint32Arg& val, |
|
const Boolean required) |
|
{ |
|
if (!required && val.isNull()) |
|
{ |
|
return; |
|
} |
|
|
|
_appendIParamValueElementBegin(out, name); |
|
if (!val.isNull()) |
|
{ |
|
out << STRLIT("<VALUE>"); |
|
append(out, val.getValue()); |
|
out << STRLIT("</VALUE>\n"); |
|
} |
|
_appendIParamValueElementEnd(out); |
|
} |
|
|
|
/* Output return value from Uint64Arg object as |
|
Value inside IRETURNVALUE |
|
If the state of the object is NULL output |
|
the parameter without value. Else |
|
output the value |
|
*/ |
|
void XmlWriter::appendUint64ReturnValue( |
|
Buffer& out, |
|
const char* name, |
|
const Uint64Arg& val) |
|
{ |
|
_appendIReturnValueElementBegin(out); |
|
out << STRLIT("<VALUE>"); |
|
if (!val.isNull()) |
|
{ |
|
append(out, val.getValue()); |
|
} |
|
out << STRLIT("</VALUE>\n"); |
|
_appendIReturnValueElementEnd(out); |
|
} |
|
//EXP_PULL_END |
|
|
|
//------------------------------------------------------------------------------ | //------------------------------------------------------------------------------ |
// | // |
// appendStringIParameter() | // appendStringIParameter() |
|
|
_appendIParamValueElementEnd(out); | _appendIParamValueElementEnd(out); |
} | } |
| |
// EXP_PULL_BEGIN |
|
//------------------------------------------------------------------------------ |
|
// |
|
// appendStringIParameterIfNotEmpty() |
|
// |
|
//------------------------------------------------------------------------------ |
|
|
|
void XmlWriter::appendStringIParameterIfNotEmpty( |
|
Buffer& out, |
|
const char* name, |
|
const String& str) |
|
{ |
|
if (str != String::EMPTY) |
|
{ |
|
appendStringIParameter(out,name,str); |
|
} |
|
} |
|
|
|
//------------------------------------------------------------------------------ |
|
// |
|
// appendStringParameter() |
|
// |
|
//------------------------------------------------------------------------------ |
|
|
|
void XmlWriter::appendStringParameter( |
|
Buffer& out, |
|
const char* name, |
|
const String& str) |
|
{ |
|
_appendParamValueElementBegin(out, name); |
|
out << STRLIT("<VALUE>"); |
|
appendSpecial(out, str); |
|
out << STRLIT("</VALUE>\n"); |
|
_appendParamValueElementEnd(out); |
|
} |
|
|
|
//------------------------------------------------------------------------------ |
|
// |
|
// appendStringIReturnValue() |
|
// |
|
//------------------------------------------------------------------------------ |
|
|
|
void XmlWriter::appendStringIReturnValue( |
|
Buffer& out, |
|
const char* name, |
|
const String& str) |
|
{ |
|
_appendIReturnValueElementWithNameBegin(out, name); |
|
out << STRLIT("<VALUE>"); |
|
appendSpecial(out, str); |
|
out << STRLIT("</VALUE>\n"); |
|
_appendIReturnValueElementEnd(out); |
|
} |
|
//EXP_PULL_END |
|
//------------------------------------------------------------------------------ | //------------------------------------------------------------------------------ |
// | // |
// appendClassNameIParameter() | // appendClassNameIParameter() |
|
|
_appendIParamValueElementEnd(out); | _appendIParamValueElementEnd(out); |
} | } |
| |
|
void XmlWriter::appendObjectNameIParameter( |
|
Buffer& out, |
|
const char* name, |
|
const CIMObjectPath& objectName) |
|
{ |
|
// |
|
// ATTN-CAKG-P2-20020726: The following condition does not correctly |
|
// distinguish instanceNames from classNames in every case |
|
// The instanceName of a singleton instance of a keyless class also |
|
// has no key bindings |
|
// |
|
if (objectName.getKeyBindings ().size () == 0) |
|
{ |
|
XmlWriter::appendClassNameIParameter( |
|
out, name, objectName.getClassName()); |
|
} |
|
else |
|
{ |
|
XmlWriter::appendInstanceNameIParameter( |
|
out, name, objectName); |
|
} |
|
} |
|
|
//------------------------------------------------------------------------------ | //------------------------------------------------------------------------------ |
// | // |
// appendClassIParameter() | // appendClassIParameter() |
|
|
const String& messageId, | const String& messageId, |
HttpMethod httpMethod, | HttpMethod httpMethod, |
const ContentLanguageList& httpContentLanguages, | const ContentLanguageList& httpContentLanguages, |
const Buffer& bodyParams, |
|
const Buffer& body, | const Buffer& body, |
Uint64 serverResponseTime, | Uint64 serverResponseTime, |
Boolean isFirst, | Boolean isFirst, |
|
|
// | // |
//------------------------------------------------------------------------------ | //------------------------------------------------------------------------------ |
| |
/* |
|
Formats a IMethod Response Message. This function formats |
|
messages for chunking based on the isFirst and isLast parameters. |
|
If isFirst is set, it outputs headers and ResponseElement begin. |
|
It always sends the body. If isLast is set, it sends the rtnParams |
|
and the ResponseElement end followed by any parameter in the rtnParams. |
|
KS_PULL_TBD_TODO - Determine what we want to do with chunking. Since this |
|
This whole thing is based on the concept of each message sending a single |
|
chunk and we will want in the future to modify so we can chose easily |
|
whether we want to chunk or not and send the chunks. |
|
*/ |
|
Buffer XmlWriter::formatSimpleIMethodRspMessage( | Buffer XmlWriter::formatSimpleIMethodRspMessage( |
const CIMName& iMethodName, | const CIMName& iMethodName, |
const String& messageId, | const String& messageId, |
HttpMethod httpMethod, | HttpMethod httpMethod, |
const ContentLanguageList& httpContentLanguages, | const ContentLanguageList& httpContentLanguages, |
const Buffer& rtnParams, |
|
const Buffer& body, | const Buffer& body, |
Uint64 serverResponseTime, | Uint64 serverResponseTime, |
Boolean isFirst, | Boolean isFirst, |
|
|
{ | { |
if (body.size() != 0 || isFirst == false) | if (body.size() != 0 || isFirst == false) |
_appendIReturnValueElementEnd(out); | _appendIReturnValueElementEnd(out); |
|
|
// Insert any return parameters. |
|
if (rtnParams.size() != 0) |
|
{ |
|
out << rtnParams; |
|
} |
|
// //EXP_PULL_END |
|
|
|
_appendIMethodResponseElementEnd(out); | _appendIMethodResponseElementEnd(out); |
_appendSimpleRspElementEnd(out); | _appendSimpleRspElementEnd(out); |
_appendMessageElementEnd(out); | _appendMessageElementEnd(out); |
|
|
const ContentLanguageList& contentLanguages, | const ContentLanguageList& contentLanguages, |
Uint32 contentLength) | Uint32 contentLength) |
{ | { |
char nn[] = { char('0' + (rand() % 10)), char('0' + (rand() % 10)), '\0' }; |
char nn[] = { '0' + (rand() % 10), '0' + (rand() % 10), '\0' }; |
| |
if (httpMethod == HTTP_METHOD_M_POST) | if (httpMethod == HTTP_METHOD_M_POST) |
{ | { |
|
|
out << STRLIT("POST ") << requestUri << STRLIT(" HTTP/1.1\r\n"); | out << STRLIT("POST ") << requestUri << STRLIT(" HTTP/1.1\r\n"); |
} | } |
out << STRLIT("HOST: ") << host << STRLIT("\r\n" | out << STRLIT("HOST: ") << host << STRLIT("\r\n" |
"Content-Type: application/xml; charset=utf-8\r\n"); |
"Content-Type: application/xml; charset=\"utf-8\"\r\n"); |
OUTPUT_CONTENTLENGTH(out, contentLength); | OUTPUT_CONTENTLENGTH(out, contentLength); |
| |
if (acceptLanguages.size() > 0) | if (acceptLanguages.size() > 0) |
|
|
const ContentLanguageList& contentLanguages, | const ContentLanguageList& contentLanguages, |
Uint32 contentLength) | Uint32 contentLength) |
{ | { |
char nn[] = { char('0' + (rand() % 10)), char('0' + (rand() % 10)), '\0' }; |
char nn[] = { '0' + (rand() % 10), '0' + (rand() % 10), '\0' }; |
| |
out << STRLIT("HTTP/1.1 " HTTP_STATUS_OK "\r\n" | out << STRLIT("HTTP/1.1 " HTTP_STATUS_OK "\r\n" |
"Content-Type: application/xml; charset=utf-8\r\n"); |
"Content-Type: application/xml; charset=\"utf-8\"\r\n"); |
OUTPUT_CONTENTLENGTH(out, contentLength); | OUTPUT_CONTENTLENGTH(out, contentLength); |
| |
if (contentLanguages.size() > 0) | if (contentLanguages.size() > 0) |
|
|
| |
case CIMKeyBinding::REFERENCE: | case CIMKeyBinding::REFERENCE: |
default: | default: |
PEGASUS_UNREACHABLE(PEGASUS_ASSERT(false);) |
PEGASUS_ASSERT(false); |
} | } |
| |
return STRLIT("unknown"); | return STRLIT("unknown"); |