protected override void OnWriteBodyContents (XmlDictionaryWriter writer)
{
switch (fmt) {
case WebContentFormat.Raw:
WriteRawContents (writer);
break;
case WebContentFormat.Json:
WriteJsonBodyContents (writer);
break;
case WebContentFormat.Xml:
WriteXmlBodyContents (writer);
break;
}
}