X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=xmltooling%2FXMLToolingConfig.cpp;h=f2671c71d713da7ccc95db45ad4a5cd17ec4993e;hb=c435af531f8de0446bcf71b359ab90caf813f34a;hp=2c06eac3d78080fedfdfc9f954af03c91ff1b927;hpb=0850bb959df9d06e2a99ae6c21db00bb2b6788e5;p=shibboleth%2Fxmltooling.git diff --git a/xmltooling/XMLToolingConfig.cpp b/xmltooling/XMLToolingConfig.cpp index 2c06eac..f2671c7 100644 --- a/xmltooling/XMLToolingConfig.cpp +++ b/xmltooling/XMLToolingConfig.cpp @@ -37,6 +37,7 @@ #include "soap/SOAP.h" #include "soap/SOAPTransport.h" #include "util/NDC.h" +#include "util/PathResolver.h" #include "util/ReplayCache.h" #include "util/StorageService.h" #include "util/TemplateEngine.h" @@ -185,6 +186,12 @@ void XMLToolingConfig::setReplayCache(ReplayCache* replayCache) } #endif +void XMLToolingConfig::setPathResolver(PathResolver* pathResolver) +{ + delete m_pathResolver; + m_pathResolver = pathResolver; +} + void XMLToolingConfig::setTemplateEngine(TemplateEngine* templateEngine) { delete m_templateEngine; @@ -274,6 +281,7 @@ bool XMLToolingInternalConfig::init() m_keyInfoResolver = KeyInfoResolverManager.newPlugin(INLINE_KEYINFO_RESOLVER,NULL); #endif + m_pathResolver = new PathResolver(); m_urlEncoder = new URLEncoder(); // Register xml:id as an ID attribute. @@ -331,6 +339,9 @@ void XMLToolingInternalConfig::term() m_replayCache = NULL; #endif + delete m_pathResolver; + m_pathResolver = NULL; + delete m_templateEngine; m_templateEngine = NULL;