Mixe for Privacy and Anonymity in the Internet
|
This class encapsulates an error or success message. More...
#include <CAXMLErrorMessage.hpp>
Public Member Functions | |
CAXMLErrorMessage (const UINT32 errorCode, UINT8 *message) | |
Creates an errorMessage object. More... | |
CAXMLErrorMessage (UINT32 errorCode) | |
Uses a default description String. More... | |
CAXMLErrorMessage (const UINT32 errorCode, UINT8 *message, CAAbstractXMLEncodable *messageObject) | |
attaches an object to the error message More... | |
CAXMLErrorMessage (UINT8 *strXmlData) | |
Parses the string XML representation. More... | |
CAXMLErrorMessage (DOMElement *elemRoot) | |
~CAXMLErrorMessage () | |
SINT32 | toXmlElement (XERCES_CPP_NAMESPACE::DOMDocument *a_doc, DOMElement *&elemRoot) |
Creates the XML structure inside an existing DOM_Document, but does not append it to any node. More... | |
UINT32 | getErrorCode () |
UINT8 * | getDescription () |
void * | getMessageObject () |
Public Member Functions inherited from CAAbstractXMLEncodable | |
CAAbstractXMLEncodable () | |
virtual | ~CAAbstractXMLEncodable () |
pure virtual destructor. More... | |
SINT32 | toXmlDocument (XERCES_CPP_NAMESPACE::DOMDocument *&pDoc) |
returns a pointer to the tagname of this XML structure's top level element. More... | |
UINT8 * | toXmlString (UINT32 *pSize) |
Converts the XML structure to a null-terminated C-String representation. More... | |
Private Member Functions | |
SINT32 | setValues (DOMElement *elemRoot) |
Private Attributes | |
UINT32 | m_iErrorCode |
UINT8 * | m_strErrMsg |
void * | m_messageObject |
This class encapsulates an error or success message.
In order to be independent from the HTTP protocol on the higher layer, this is now used instead of http errorcodes.
Definition at line 44 of file CAXMLErrorMessage.hpp.
Creates an errorMessage object.
The errorcode should be one of the above ERR_* constants.
errorCode | UINT32 one of the above constants |
message | String a human-readable description of the error |
Definition at line 33 of file CAXMLErrorMessage.cpp.
References m_iErrorCode, m_messageObject, and m_strErrMsg.
CAXMLErrorMessage::CAXMLErrorMessage | ( | UINT32 | errorCode | ) |
Uses a default description String.
errorCode | UINT32 |
Definition at line 44 of file CAXMLErrorMessage.cpp.
References m_iErrorCode, m_messageObject, and m_strErrMsg.
CAXMLErrorMessage::CAXMLErrorMessage | ( | const UINT32 | errorCode, |
UINT8 * | message, | ||
CAAbstractXMLEncodable * | messageObject | ||
) |
attaches an object to the error message
Definition at line 88 of file CAXMLErrorMessage.cpp.
References m_iErrorCode, m_messageObject, and m_strErrMsg.
CAXMLErrorMessage::CAXMLErrorMessage | ( | UINT8 * | strXmlData | ) |
Parses the string XML representation.
Definition at line 116 of file CAXMLErrorMessage.cpp.
References E_SUCCESS, ERR_NO_ERROR_GIVEN, m_iErrorCode, m_messageObject, m_strErrMsg, parseDOMDocument(), and setValues().
CAXMLErrorMessage::CAXMLErrorMessage | ( | DOMElement * | elemRoot | ) |
Definition at line 97 of file CAXMLErrorMessage.cpp.
References E_SUCCESS, ERR_NO_ERROR_GIVEN, m_iErrorCode, m_messageObject, m_strErrMsg, and setValues().
CAXMLErrorMessage::~CAXMLErrorMessage | ( | ) |
|
inline |
Definition at line 109 of file CAXMLErrorMessage.hpp.
References m_strErrMsg.
Referenced by CAAccountingInstance::__handleSettleResult(), and CAAccountingInstance::settlementTransaction().
|
inline |
Definition at line 104 of file CAXMLErrorMessage.hpp.
References m_iErrorCode.
Referenced by CAAccountingInstance::__handleSettleResult(), and CAAccountingInstance::settlementTransaction().
|
inline |
Definition at line 114 of file CAXMLErrorMessage.hpp.
References m_messageObject.
Referenced by CAAccountingInstance::__handleSettleResult(), and CAAccountingInstance::settlementTransaction().
|
private |
Definition at line 144 of file CAXMLErrorMessage.cpp.
References DOM_Output::dumpToMem(), DOM_Output::dumpToString(), E_SUCCESS, ERR_ACCOUNT_EMPTY, ERR_OUTDATED_CC, getDOMChildByName(), getDOMElementAttribute(), getDOMElementValue(), len, m_iErrorCode, m_messageObject, m_strErrMsg, and CAMsg::printMsg().
Referenced by CAXMLErrorMessage().
|
virtual |
Creates the XML structure inside an existing DOM_Document, but does not append it to any node.
a_doc | an existing DOM_Document |
elemRoot | on return contains the root element of the created XML structure. Note that the element is not appended to any node in the document |
Implements CAAbstractXMLEncodable.
Definition at line 234 of file CAXMLErrorMessage.cpp.
References createDOMElement(), E_SUCCESS, m_iErrorCode, m_messageObject, m_strErrMsg, setDOMElementAttribute(), setDOMElementValue(), CAAbstractXMLEncodable::toXmlElement(), and XML_ELEMENT_ERROR_MSG.
|
static |
Definition at line 58 of file CAXMLErrorMessage.hpp.
Referenced by CAAccountingInstance::__commitSettlementToDatabase(), CAAccountingInstance::__handleSettleResult(), CAAccountingInstance::finishLoginProcess(), CAAccountingInstance::handleChallengeResponse_internal(), CAAccountingInstance::handleJapPacket_internal(), CAAccountingInstance::settlementTransaction(), and setValues().
|
static |
Definition at line 54 of file CAXMLErrorMessage.hpp.
Referenced by CAAccountingInstance::handleAccountCertificate_internal(), and CAAccountingInstance::handleCostConfirmation_internal().
|
static |
Definition at line 53 of file CAXMLErrorMessage.hpp.
Referenced by CAAccountingInstance::handleAccountCertificate_internal(), CAAccountingInstance::handleChallengeResponse_internal(), and CAAccountingInstance::handleCostConfirmation_internal().
|
static |
Definition at line 69 of file CAXMLErrorMessage.hpp.
Referenced by CAAccountingInstance::__commitSettlementToDatabase(), CAAccountingInstance::__handleSettleResult(), CAAccountingInstance::finishLoginProcess(), CAAccountingInstance::handleChallengeResponse_internal(), CAAccountingInstance::handleJapPacket_internal(), and CAAccountingInstance::settlementTransaction().
|
static |
Definition at line 59 of file CAXMLErrorMessage.hpp.
|
static |
Definition at line 60 of file CAXMLErrorMessage.hpp.
Referenced by CAAccountingInstance::__handleSettleResult(), CAAccountingInstance::handleJapPacket_internal(), and CAAccountingInstance::settlementTransaction().
|
static |
Definition at line 61 of file CAXMLErrorMessage.hpp.
|
static |
Definition at line 49 of file CAXMLErrorMessage.hpp.
Referenced by CAAccountingInstance::__handleSettleResult(), CAAccountingInstance::handleAccountCertificate_internal(), CAAccountingInstance::handleChallengeResponse_internal(), CAAccountingInstance::handleCostConfirmation_internal(), CAAccountingInstance::handleJapPacket_internal(), CAAccountingInstance::processJapMessageLoginHelper(), CAAccountingBIInterface::settleAll(), and CAAccountingInstance::settlementTransaction().
|
static |
Definition at line 63 of file CAXMLErrorMessage.hpp.
|
static |
Definition at line 65 of file CAXMLErrorMessage.hpp.
|
static |
Definition at line 52 of file CAXMLErrorMessage.hpp.
Referenced by CAAccountingInstance::__commitSettlementToDatabase(), CAAccountingInstance::__handleSettleResult(), CAAccountingInstance::handleAccountCertificate_internal(), CAAccountingInstance::handleChallengeResponse_internal(), CAAccountingInstance::handleJapPacket_internal(), and CAAccountingInstance::settlementTransaction().
|
static |
Definition at line 66 of file CAXMLErrorMessage.hpp.
Referenced by CAAccountingInstance::handleChallengeResponse_internal(), CAAccountingInstance::handleJapPacket_internal(), and CAAccountingInstance::processJapMessageLoginHelper().
|
static |
Definition at line 55 of file CAXMLErrorMessage.hpp.
|
static |
Definition at line 56 of file CAXMLErrorMessage.hpp.
Referenced by CAAccountingInstance::finishLoginProcess().
|
static |
Definition at line 57 of file CAXMLErrorMessage.hpp.
Referenced by CAAccountingInstance::handleJapPacket_internal().
|
static |
Definition at line 70 of file CAXMLErrorMessage.hpp.
Referenced by CAXMLErrorMessage(), CAAccountingInstance::finishLoginProcess(), CAAccountingInstance::handleAccountCertificate_internal(), CAAccountingInstance::handleChallengeResponse_internal(), and CAAccountingInstance::handleCostConfirmation_internal().
|
static |
Definition at line 62 of file CAXMLErrorMessage.hpp.
|
static |
Definition at line 67 of file CAXMLErrorMessage.hpp.
Referenced by CAAccountingInstance::handleAccountCertificate_internal(), CAAccountingInstance::handleChallengeResponse_internal(), and CAAccountingInstance::handleCostConfirmation_internal().
|
static |
Definition at line 48 of file CAXMLErrorMessage.hpp.
Referenced by CAAccountingDBInterface::__getAccountStatus(), CAAccountingInstance::__handleSettleResult(), CAAccountingInstance::finishLoginProcess(), CAAccountingInstance::handleAccountCertificate_internal(), CAAccountingInstance::handleChallengeResponse_internal(), CAAccountingInstance::handleCostConfirmation_internal(), CAAccountingInstance::processJapMessage(), CAAccountingInstance::processJapMessageLoginHelper(), and CAAccountingInstance::settlementTransaction().
|
static |
Definition at line 64 of file CAXMLErrorMessage.hpp.
Referenced by CAAccountingInstance::__handleSettleResult(), CAAccountingInstance::settlementTransaction(), and setValues().
|
static |
Definition at line 68 of file CAXMLErrorMessage.hpp.
Referenced by CAAccountingInstance::__handleSettleResult(), and CAAccountingInstance::settlementTransaction().
|
static |
Definition at line 51 of file CAXMLErrorMessage.hpp.
Referenced by CAAccountingInstance::handleCostConfirmation_internal().
|
static |
Definition at line 50 of file CAXMLErrorMessage.hpp.
Referenced by CAAccountingInstance::handleAccountCertificate_internal(), CAAccountingInstance::handleChallengeResponse_internal(), and CAAccountingInstance::handleCostConfirmation_internal().
|
private |
Definition at line 121 of file CAXMLErrorMessage.hpp.
Referenced by CAXMLErrorMessage(), getErrorCode(), setValues(), and toXmlElement().
|
private |
Definition at line 123 of file CAXMLErrorMessage.hpp.
Referenced by CAXMLErrorMessage(), getMessageObject(), setValues(), toXmlElement(), and ~CAXMLErrorMessage().
|
private |
Definition at line 122 of file CAXMLErrorMessage.hpp.
Referenced by CAXMLErrorMessage(), getDescription(), setValues(), toXmlElement(), and ~CAXMLErrorMessage().