X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=saml%2Fsaml2%2Fmetadata%2Fimpl%2FXMLMetadataProvider.cpp;h=ffa441193f14f0972798ca9a0ad6626e7ee1c181;hb=46ac496b77b850309c07e732ff89fa41c776915d;hp=49f8c2ce2af50b1955d0a81f6dc0cbee749439cb;hpb=d4c3a64c4a416dd664ef28fa4437de1d5c7851f4;p=shibboleth%2Fcpp-opensaml.git diff --git a/saml/saml2/metadata/impl/XMLMetadataProvider.cpp b/saml/saml2/metadata/impl/XMLMetadataProvider.cpp index 49f8c2c..ffa4411 100644 --- a/saml/saml2/metadata/impl/XMLMetadataProvider.cpp +++ b/saml/saml2/metadata/impl/XMLMetadataProvider.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2001-2006 Internet2 + * Copyright 2001-2007 Internet2 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,9 +22,9 @@ #include "internal.h" #include "saml2/metadata/Metadata.h" +#include "saml2/metadata/MetadataFilter.h" #include "saml2/metadata/AbstractMetadataProvider.h" -#include #include #include @@ -44,7 +44,10 @@ namespace opensaml { class SAML_DLLLOCAL XMLMetadataProvider : public AbstractMetadataProvider, public ReloadableXMLFile { public: - XMLMetadataProvider(const DOMElement* e) : AbstractMetadataProvider(e), ReloadableXMLFile(e), m_object(NULL) {} + XMLMetadataProvider(const DOMElement* e) + : AbstractMetadataProvider(e), ReloadableXMLFile(e, Category::getInstance(SAML_LOGCAT".MetadataProvider")), + m_object(NULL) { + } virtual ~XMLMetadataProvider() { delete m_object; } @@ -60,12 +63,8 @@ namespace opensaml { protected: pair load(); - bool isValid() const { - const TimeBoundSAMLObject* bound=dynamic_cast(m_object); - return bound ? bound->isValid() : false; - } - private: + using AbstractMetadataProvider::index; void index(); XMLObject* m_object;