version 1.14, 2012/07/30 11:18:27
|
version 1.15, 2013/06/13 13:19:57
|
|
|
| |
// checkDuplicateHeader. It is a duplicate if the isDuplicate parameter | // checkDuplicateHeader. It is a duplicate if the isDuplicate parameter |
// is true | // is true |
inline void checkDuplicateHeader( |
void WsmReader:: checkDuplicateHeader( |
const char* elementName, | const char* elementName, |
Boolean isDuplicate) | Boolean isDuplicate) |
{ | { |
|
|
} | } |
// The only supported delivery mode is PUSH. | // The only supported delivery mode is PUSH. |
// If this changes we need to add other delivery modes | // If this changes we need to add other delivery modes |
if(strcmp(value, WSMAN_DELIVEY_MODE_PUSH)!= 0) |
if(!((strcmp(value,WSMAN_DELIVEY_MODE_PUSH) == 0) || ( |
|
strcmp(value,WSMAN_DELIVERY_MODE_PUSH_WITH_ACK) == 0))) |
{ | { |
MessageLoaderParms parms( | MessageLoaderParms parms( |
"WsmServer.WsmReader.UNSUPPORTED_DELIVERY_MODE", | "WsmServer.WsmReader.UNSUPPORTED_DELIVERY_MODE", |
|
|
} | } |
else | else |
{ | { |
deliveryMode mode = Push; |
deliveryMode mode; |
|
if(strcmp(value, WSMAN_DELIVEY_MODE_PUSH) == 0) |
|
{ |
|
mode = Push; |
|
} |
|
else |
|
{ |
|
mode = PushWithAck; |
|
} |
char buffer[22]; | char buffer[22]; |
Uint32 size; | Uint32 size; |
delMode = Uint16ToString(buffer, mode, size); | delMode = Uint16ToString(buffer, mode, size); |
|
|
_parser.setHideEmptyTags(false); | _parser.setHideEmptyTags(false); |
PEG_METHOD_EXIT(); | PEG_METHOD_EXIT(); |
} | } |
|
XmlParser& WsmReader::getParser() |
|
{ |
|
return _parser; |
|
} |
|
|
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |