Resolver that modifies paths to DTD files. More...
#include <MlpDtdResolver.hpp>
Public Member Functions | |
MlpDtdResolver () | |
Constructor. | |
MlpDtdResolver (std::string) | |
Constructor that sets pat to DTD directory. | |
~MlpDtdResolver () | |
void | setDtdPath (std::string dtdPath) |
Setter of path to DTD directory. | |
std::string | getDtdPath () |
Getter of path to DTD directory. | |
virtual xercesc::InputSource * | resolveEntity (const XMLCh *const publicId, const XMLCh *const systemId) |
Modifies path where DTD file should be looked for. | |
Protected Attributes | |
std::string | mlpDtdPath |
Resolver that modifies paths to DTD files.
Every MLP message should contain path doctype definition file that describes this message. Path can be public URI leading to file at Open Mobile Alliance servers. This class modifies these URIs so it leads to local files.
MlpDtdResolver::MlpDtdResolver | ( | ) |
Constructor.
Constructor that sets path to directory with DTD files to empty string.
MlpDtdResolver::MlpDtdResolver | ( | std::string | dtdPath | ) |
Constructor that sets pat to DTD directory.
Constructor that sets path to directory with DTD files.
MlpDtdResolver::~MlpDtdResolver | ( | ) | [inline] |
std::string MlpDtdResolver::getDtdPath | ( | ) |
Getter of path to DTD directory.
Getter that returns std::string with path to directory with DTD files.
xercesc::InputSource * MlpDtdResolver::resolveEntity | ( | const XMLCh *const | publicId, | |
const XMLCh *const | systemId | |||
) | [virtual] |
Modifies path where DTD file should be looked for.
This method is used for opening DTD files for verifying MLP messages.
publicId | ||
systemId | Path to DTD file |
void MlpDtdResolver::setDtdPath | ( | std::string | dtdPath | ) |
Setter of path to DTD directory.
Setter that sets path to directory with DTD files.
std::string MlpDtdResolver::mlpDtdPath [protected] |