/**
* XMLToolingConfig.cpp
*
- * Library configuration
+ * Library configuration.
*/
#include "internal.h"
#include "XMLToolingConfig.h"
#include "encryption/Encryption.h"
#include "encryption/Encrypter.h"
-#include "io/HTTPRequest.h"
-#include "io/HTTPResponse.h"
#include "impl/UnknownElement.h"
#include "security/TrustEngine.h"
#include "security/OpenSSLCryptoX509CRL.h"
#include "signature/KeyInfo.h"
#include "signature/Signature.h"
#include "soap/SOAP.h"
-#include "soap/SOAPTransport.h"
#include "util/NDC.h"
#include "util/PathResolver.h"
#include "util/ReplayCache.h"
#include "util/TemplateEngine.h"
#include "util/Threads.h"
#include "util/URLEncoder.h"
-#include "util/XMLConstants.h"
#include "validation/ValidatorSuite.h"
#ifdef HAVE_DLFCN_H
return g_config;
}
+#ifndef XMLTOOLING_NO_XMLSEC
+XMLToolingConfig::XMLToolingConfig()
+ : m_keyInfoResolver(NULL), m_replayCache(NULL), m_pathResolver(NULL), m_templateEngine(NULL), m_urlEncoder(NULL), clock_skew_secs(180)
+#else
+XMLToolingConfig::XMLToolingConfig()
+ : m_pathResolver(NULL), m_templateEngine(NULL), m_urlEncoder(NULL), clock_skew_secs(180)
+#endif
+{
+}
+
+XMLToolingConfig::~XMLToolingConfig()
+{
+}
+
bool XMLToolingInternalConfig::log_config(const char* config)
{
try {
/**
* @file xmltooling/XMLToolingConfig.h
*
- * Library configuration
+ * Library configuration.
*/
#ifndef __xmltooling_config_h__
#include <xmltooling/Lockable.h>
#include <xmltooling/PluginManager.h>
#include <xmltooling/soap/SOAPTransport.h>
-#include <xmltooling/util/ParserPool.h>
-#ifndef XMLTOOLING_NO_XMLSEC
-namespace xmltooling {
- class XMLTOOL_API CredentialResolver;
- class XMLTOOL_API KeyInfoResolver;
- class XMLTOOL_API TrustEngine;
- class XMLTOOL_API XSECCryptoX509CRL;
-};
-#endif
+#include <string>
+#include <xercesc/dom/DOM.hpp>
#if defined (_MSC_VER)
#pragma warning( push )
namespace xmltooling {
+ class XMLTOOL_API ParserPool;
class XMLTOOL_API PathResolver;
class XMLTOOL_API TemplateEngine;
class XMLTOOL_API URLEncoder;
class XMLTOOL_API ReplayCache;
class XMLTOOL_API StorageService;
#endif
+#ifndef XMLTOOLING_NO_XMLSEC
+ class XMLTOOL_API CredentialResolver;
+ class XMLTOOL_API KeyInfoResolver;
+ class XMLTOOL_API TrustEngine;
+ class XMLTOOL_API XSECCryptoX509CRL;
+#endif
/**
* Singleton object that manages library startup/shutdown.configuration.
* obtain a global system lock, but the actual configuration itself is not
* synchronized.
*/
- class XMLTOOL_API XMLToolingConfig : public Lockable
+ class XMLTOOL_API XMLToolingConfig : public virtual Lockable
{
MAKE_NONCOPYABLE(XMLToolingConfig);
protected:
-#ifndef XMLTOOLING_NO_XMLSEC
- XMLToolingConfig() : m_keyInfoResolver(NULL), m_replayCache(NULL),
- m_pathResolver(NULL), m_templateEngine(NULL), m_urlEncoder(NULL), clock_skew_secs(180) {}
+ XMLToolingConfig();
+#ifndef XMLTOOLING_NO_XMLSEC
/** Global KeyInfoResolver instance. */
KeyInfoResolver* m_keyInfoResolver;
/** Global ReplayCache instance. */
ReplayCache* m_replayCache;
-#else
- XMLToolingConfig() : m_pathResolver(NULL), m_templateEngine(NULL), m_urlEncoder(NULL), clock_skew_secs(180) {}
#endif
/** Global PathResolver instance. */
URLEncoder* m_urlEncoder;
public:
- virtual ~XMLToolingConfig() {}
+ virtual ~XMLToolingConfig();
/**
* Returns the global configuration object for the library.