From a92f1a857da28cf3e0d865477a4ecd68d6b23226 Mon Sep 17 00:00:00 2001 From: cantor Date: Wed, 23 Jan 2008 03:33:56 +0000 Subject: [PATCH] Renamed Applications/Application tags. git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@2700 cb58f699-b61c-0410-a6fe-9272a202ed29 --- configs/shibboleth2.xml.in | 28 ++-------------------------- schemas/shibboleth-2.0-native-sp-config.xsd | 8 ++++---- shibsp/impl/XMLServiceProvider.cpp | 20 ++++++++++---------- 3 files changed, 16 insertions(+), 40 deletions(-) diff --git a/configs/shibboleth2.xml.in b/configs/shibboleth2.xml.in index 844dad5..1bf9bb3 100644 --- a/configs/shibboleth2.xml.in +++ b/configs/shibboleth2.xml.in @@ -73,11 +73,11 @@ - - - - diff --git a/schemas/shibboleth-2.0-native-sp-config.xsd b/schemas/shibboleth-2.0-native-sp-config.xsd index 54d9b3a..2fed592 100644 --- a/schemas/shibboleth-2.0-native-sp-config.xsd +++ b/schemas/shibboleth-2.0-native-sp-config.xsd @@ -426,9 +426,9 @@ - + - Container for global settings and application-specific overrides + Container for default settings and application-specific overrides @@ -443,7 +443,7 @@ - + @@ -454,7 +454,7 @@ - + Container for application-specific overrides diff --git a/shibsp/impl/XMLServiceProvider.cpp b/shibsp/impl/XMLServiceProvider.cpp index 5c6c4cf..132e2f2 100644 --- a/shibsp/impl/XMLServiceProvider.cpp +++ b/shibsp/impl/XMLServiceProvider.cpp @@ -380,8 +380,8 @@ namespace { #pragma warning( pop ) #endif - static const XMLCh _Application[] = UNICODE_LITERAL_11(A,p,p,l,i,c,a,t,i,o,n); - static const XMLCh Applications[] = UNICODE_LITERAL_12(A,p,p,l,i,c,a,t,i,o,n,s); + static const XMLCh ApplicationOverride[] = UNICODE_LITERAL_19(A,p,p,l,i,c,a,t,i,o,n,O,v,e,r,r,i,d,e); + static const XMLCh ApplicationDefaults[] = UNICODE_LITERAL_19(A,p,p,l,i,c,a,t,i,o,n,D,e,f,a,u,l,t,s); static const XMLCh _ArtifactMap[] = UNICODE_LITERAL_11(A,r,t,i,f,a,c,t,M,a,p); static const XMLCh _AttributeExtractor[] = UNICODE_LITERAL_18(A,t,t,r,i,b,u,t,e,E,x,t,r,a,c,t,o,r); static const XMLCh _AttributeFilter[] = UNICODE_LITERAL_15(A,t,t,r,i,b,u,t,e,F,i,l,t,e,r); @@ -923,7 +923,7 @@ void XMLApplication::cleanup() short XMLApplication::acceptNode(const DOMNode* node) const { const XMLCh* name=node->getLocalName(); - if (XMLString::equals(name,_Application) || + if (XMLString::equals(name,ApplicationOverride) || XMLString::equals(name,_Audience) || XMLString::equals(name,Notify) || XMLString::equals(name,_Handler) || @@ -1119,7 +1119,7 @@ short XMLConfigImpl::acceptNode(const DOMNode* node) const if (!XMLString::equals(node->getNamespaceURI(),shibspconstants::SHIB2SPCONFIG_NS)) return FILTER_ACCEPT; const XMLCh* name=node->getLocalName(); - if (XMLString::equals(name,Applications) || + if (XMLString::equals(name,ApplicationDefaults) || XMLString::equals(name,_ArtifactMap) || XMLString::equals(name,_Extensions) || XMLString::equals(name,Listener) || @@ -1385,24 +1385,24 @@ XMLConfigImpl::XMLConfigImpl(const DOMElement* e, bool first, const XMLConfig* o #endif // Load the default application. This actually has a fixed ID of "default". ;-) - child=XMLHelper::getLastChildElement(e,Applications); + child=XMLHelper::getLastChildElement(e,ApplicationDefaults); if (!child) { - log.fatal("can't build default Application object, missing conf:Applications element?"); - throw ConfigurationException("can't build default Application object, missing conf:Applications element?"); + log.fatal("can't build default Application object, missing conf:ApplicationDefaults element?"); + throw ConfigurationException("can't build default Application object, missing conf:ApplicationDefaults element?"); } XMLApplication* defapp=new XMLApplication(m_outer,child); m_appmap[defapp->getId()]=defapp; // Load any overrides. - child = XMLHelper::getFirstChildElement(child,_Application); + child = XMLHelper::getFirstChildElement(child,ApplicationOverride); while (child) { auto_ptr iapp(new XMLApplication(m_outer,child,defapp)); if (m_appmap.count(iapp->getId())) - log.crit("found conf:Application element with duplicate id attribute (%s), skipping it", iapp->getId()); + log.crit("found conf:ApplicationOverride element with duplicate id attribute (%s), skipping it", iapp->getId()); else m_appmap[iapp->getId()]=iapp.release(); - child = XMLHelper::getNextSiblingElement(child,_Application); + child = XMLHelper::getNextSiblingElement(child,ApplicationOverride); } } catch (exception&) { -- 2.1.4