|
Mixes for Privacy and Anonymity in the Internet
|
Static Public Member Functions | |
| static SINT32 | dumpToMem (const DOMNode *node, UINT8 *buff, UINT32 *size) |
| Dumps the node and all childs into buff. | |
| static UINT8 * | dumpToMem (const DOMNode *node, UINT32 *size) |
| Dumps the Node an returns a pointer to the memory. | |
| static UINT8 * | dumpToString (const DOMNode *node, bool a_bAddNewLine) |
| Dumps the Node an returns a pointer to a null terminated string. | |
| static SINT32 | makeCanonical (const DOMNode *node, UINT8 *buff, UINT32 *size) |
| Dumps the node and all childs in a 'cannonical form' into buff. | |
| static UINT8 * | makeCanonical (const DOMNode *node, UINT32 *size) |
| Dumps the Node in a cannonical form and returns a pointer to the memory. | |
Private Member Functions | |
| DOM_Output () | |
| ~DOM_Output () | |
| SINT32 | dumpNode (const DOMNode *toWrite, bool bCanonical) |
| Dumps a Node of an XML Document. | |
Static Private Member Functions | |
| static UINT8 * | dumpToMem (const DOMNode *node, UINT32 *size, OUTPUT_FORMAT a_outputFormat) |
| Dumps the Node an returns a pointer to the memory. | |
Private Attributes | |
| XMLFormatter * | m_pFormatter |
| MemFormatTarget * | m_pFormatTarget |
Static Private Attributes | |
| static const XMLCh | m_XML [41] |
| static const XMLCh | m_UTF8 [6] |
| static const XMLCh | m_1_0 [4] |
| DOM_Output::DOM_Output | ( | ) | [private] |
References m_1_0, m_pFormatTarget, m_pFormatter, and m_UTF8.
| DOM_Output::~DOM_Output | ( | ) | [private] |
References m_pFormatTarget, and m_pFormatter.
| SINT32 DOM_Output::dumpNode | ( | const DOMNode * | toWrite, |
| bool | bCanonical | ||
| ) | [private] |
Dumps a Node of an XML Document.
| toWrite | Node which will be dumped |
| bCanonical | if true the dump is done in a 'canonical' way, e.g. white spaces are eliminated etc. |
| E_SUCCESS | if successful |
| E_UNKNOWN | otherwise |
References E_SUCCESS, E_UNKNOWN, gEndElement, m_pFormatter, and m_XML.
Referenced by dumpToMem(), and makeCanonical().
| static SINT32 DOM_Output::dumpToMem | ( | const DOMNode * | node, |
| UINT8 * | buff, | ||
| UINT32 * | size | ||
| ) | [static] |
Dumps the node and all childs into buff.
Note that the string is NOT null-terminated.
| node | Node to dump |
| buff | buffer in which to copy the XML-chars |
| size | contains the size of buff, on return contains the number of XML-CHars copied |
References MemFormatTarget::dumpMem(), dumpNode(), E_SUCCESS, E_UNKNOWN, and m_pFormatTarget.
Referenced by CAFirstMix::doUserLogin_internal(), dumpToMem(), dumpToString(), encryptXMLElement(), CAInfoService::getCascadeHeloXMLAsString(), CAASymCipher::getPublicKeyAsXML(), CAAccountingInstance::handleAccountCertificate_internal(), CAMiddleMix::processKeyExchange(), CALastMix::processKeyExchange(), CAFirstMix::processKeyExchange(), CACmdLnOptions::saveToFile(), CAAccountingInstance::sendAILoginConfirmation(), CAAccountingInstance::sendCCRequest(), CAAccountingInstance::sendInitialCCRequest(), CAAbstractControlChannel::sendXMLMessage(), CACmdLnOptions::setPrevMix(), CAAccountingBIInterface::settleAll(), CAXMLErrorMessage::setValues(), CAMultiSignature::signXML(), CAXMLPriceCert::toXMLString(), CAAbstractXMLEncodable::toXmlString(), CAXMLCostConfirmation::toXMLString(), and CAInfoService::xmlDocToStringWithSignature().
| static UINT8* DOM_Output::dumpToMem | ( | const DOMNode * | node, |
| UINT32 * | size | ||
| ) | [static] |
Dumps the Node an returns a pointer to the memory.
Note that the string is NOT null-terminated.
| node | Node to dump |
| size | on return contains the number of XML-Chars copied |
References dumpToMem(), and OF_DEFAULT.
| static UINT8* DOM_Output::dumpToMem | ( | const DOMNode * | node, |
| UINT32 * | size, | ||
| OUTPUT_FORMAT | a_outputFormat | ||
| ) | [static, private] |
Dumps the Node an returns a pointer to the memory.
| node | Node to dump |
| size | on return contains the number of XML-Chars copied |
| a_outputFormat | the output format of the string, e.g. with null termination |
References MemFormatTarget::dumpMem(), dumpNode(), E_SUCCESS, and m_pFormatTarget.
| static UINT8* DOM_Output::dumpToString | ( | const DOMNode * | node, |
| bool | a_bAddNewLine | ||
| ) | [static] |
Dumps the Node an returns a pointer to a null terminated string.
| node | Node to dump |
| a_bAddNewLine | true if a new line should be added to the end of the string; false otherwise |
References dumpToMem(), OF_NEWLINE, and OF_NULL_TERMINATED.
Referenced by CAXMLErrorMessage::setValues().
| static SINT32 DOM_Output::makeCanonical | ( | const DOMNode * | node, |
| UINT8 * | buff, | ||
| UINT32 * | size | ||
| ) | [static] |
Dumps the node and all childs in a 'cannonical form' into buff.
| node | Node to dump |
| buff | buffer in which to copy the XML-chars |
| size | contains the size of buff, on return contains the number of XML-CHars copied |
References MemFormatTarget::dumpMem(), dumpNode(), E_SUCCESS, E_UNKNOWN, and m_pFormatTarget.
Referenced by CAAccountingInstance::prepareCCRequest(), CAMultiSignature::signXML(), CAMultiSignature::verifyXML(), and CASignature::verifyXML().
| static UINT8* DOM_Output::makeCanonical | ( | const DOMNode * | node, |
| UINT32 * | size | ||
| ) | [static] |
Dumps the Node in a cannonical form and returns a pointer to the memory.
| node | Node to dump |
| size | on return contains the number of XML-Chars copied |
References MemFormatTarget::dumpMem(), dumpNode(), E_SUCCESS, m_pFormatTarget, and OF_DEFAULT.
const XMLCh DOM_Output::m_1_0 [static, private] |
{
chDigit_1,chPeriod,chDigit_0, chNull
}
Referenced by DOM_Output().
MemFormatTarget* DOM_Output::m_pFormatTarget [private] |
Referenced by DOM_Output(), dumpToMem(), makeCanonical(), and ~DOM_Output().
XMLFormatter* DOM_Output::m_pFormatter [private] |
Referenced by DOM_Output(), dumpNode(), and ~DOM_Output().
const XMLCh DOM_Output::m_UTF8 [static, private] |
{
chLatin_U, chLatin_T,chLatin_F, chDash,chDigit_8, chNull
}
Referenced by DOM_Output().
const XMLCh DOM_Output::m_XML [static, private] |
{
chOpenAngle,chQuestion,chLatin_x,chLatin_m,chLatin_l,chSpace,
chLatin_v,chLatin_e,chLatin_r,chLatin_s,chLatin_i,chLatin_o,chLatin_n,chEqual,
chDoubleQuote,chDigit_1,chPeriod,chDigit_0,chDoubleQuote,chSpace,
chLatin_e,chLatin_n,chLatin_c,chLatin_o,chLatin_d,chLatin_i,chLatin_n,chLatin_g,chEqual,
chDoubleQuote,chLatin_U, chLatin_T,chLatin_F, chDash,chDigit_8, chDoubleQuote,
chQuestion,chCloseAngle,chCR,chLF,chNull
}
Referenced by dumpNode().
1.7.6.1