Class LocalDynamicMetadataProviderParser
- java.lang.Object
-
- org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
-
- org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
-
- net.shibboleth.ext.spring.util.AbstractCustomBeanDefinitionParser
-
- net.shibboleth.idp.profile.spring.relyingparty.metadata.AbstractMetadataProviderParser
-
- net.shibboleth.idp.profile.spring.relyingparty.metadata.impl.AbstractDynamicMetadataProviderParser
-
- net.shibboleth.idp.profile.spring.relyingparty.metadata.impl.LocalDynamicMetadataProviderParser
-
- All Implemented Interfaces:
BeanDefinitionParser
public class LocalDynamicMetadataProviderParser extends AbstractDynamicMetadataProviderParser
Parser forLocalDynamicMetadataResolver.
-
-
Field Summary
Fields Modifier and Type Field Description static QNameELEMENT_NAMEElement name.private org.slf4j.LoggerlogLogger.-
Fields inherited from class net.shibboleth.idp.profile.spring.relyingparty.metadata.AbstractMetadataProviderParser
CHAINING_PROVIDER_ELEMENT_NAME, METADATA_FILTER_ELEMENT_NAME, METADATA_NAMESPACE, SECURITY_NAMESPACE, TRUST_ENGINE_ELEMENT_NAME
-
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE, NAME_ATTRIBUTE
-
-
Constructor Summary
Constructors Constructor Description LocalDynamicMetadataProviderParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private BeanDefinitionbuildFilesystemManagerDefinition(Element element, ParserContext parserContext, boolean isDefaultSourceKeyGenerator)Build bean definition forFilesystemLoadSaveManagersource manager.private BeanDefinitioncheckAndBuildPassthroughIntermediateDirectoryStrategy(Element element, ParserContext parserContext)Return bean definition for the default intermediate directory strategy with passthrough source strategy, if segmenting configuration params specified.private voidcheckAndLogSourceDirectoryOverrides(Element element)Check and log the options related to 'sourceDirectory' which are being overridden by 'sourceManagerRef'.protected voiddoNativeParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder)Parse the element into the provider builder.protected Class<? extends MetadataResolver>getNativeBeanClass(Element element)Return the real class implement by this type.private voidprocessIntermediateDirectoryStrategy(Element element, ParserContext parserContext, BeanDefinitionBuilder sourceManagerBuilder, boolean isDefaultSourceKeyGenerator)Process options related to intermediate directory strategy and apply to the builder for theFilesystemLoadSaveManager.-
Methods inherited from class net.shibboleth.idp.profile.spring.relyingparty.metadata.impl.AbstractDynamicMetadataProviderParser
getParserPoolRef, getTaskTimerRef, processPersistentCachingProperties, processTimingProperties
-
Methods inherited from class net.shibboleth.idp.profile.spring.relyingparty.metadata.AbstractMetadataProviderParser
doParse, getBeanClass
-
Methods inherited from class net.shibboleth.ext.spring.util.AbstractCustomBeanDefinitionParser
registerBeanDefinition
-
Methods inherited from class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
doParse, getBeanClassName, getParentName, parseInternal
-
Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
parse, postProcessComponentDefinition, resolveId, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliases
-
-
-
-
Field Detail
-
ELEMENT_NAME
public static final QName ELEMENT_NAME
Element name.
-
log
private org.slf4j.Logger log
Logger.
-
-
Method Detail
-
getNativeBeanClass
protected Class<? extends MetadataResolver> getNativeBeanClass(Element element)
Return the real class implement by this type. This has the same function as the more usualAbstractSingleBeanDefinitionParser.getBeanClass(Element)but it may need to be shimmed inAbstractMetadataProviderParserwhich may need to insert an extra bean.- Specified by:
getNativeBeanClassin classAbstractMetadataProviderParser- Parameters:
element- theElementthat is being parsed- Returns:
- the
Classof the bean that is being defined via parsing the suppliedElement, ornullif none - See Also:
AbstractSingleBeanDefinitionParser.getBeanClassName(org.w3c.dom.Element)
-
doNativeParse
protected void doNativeParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder)
Parse the element into the provider builder. This has the same function as the more usualAbstractSingleBeanDefinitionParser.doParse(Element, ParserContext, BeanDefinitionBuilder)but it may need to be shimmed in this class which may need to insert an extra bean. We assume that we will be summoning up a class which extends anAbstractDynamicMetadataResolver.- Overrides:
doNativeParsein classAbstractDynamicMetadataProviderParser- Parameters:
element- the XML element being parsedparserContext- the object encapsulating the current state of the parsing processbuilder- used to define theBeanDefinition- See Also:
AbstractSingleBeanDefinitionParser.doParse(Element, BeanDefinitionBuilder)
-
checkAndLogSourceDirectoryOverrides
private void checkAndLogSourceDirectoryOverrides(Element element)
Check and log the options related to 'sourceDirectory' which are being overridden by 'sourceManagerRef'.- Parameters:
element- the element being parsed
-
buildFilesystemManagerDefinition
private BeanDefinition buildFilesystemManagerDefinition(Element element, ParserContext parserContext, boolean isDefaultSourceKeyGenerator)
Build bean definition forFilesystemLoadSaveManagersource manager.- Parameters:
element- the element being parsedparserContext- the current parser contextisDefaultSourceKeyGenerator- whether the internal default source key manager is being used- Returns:
- the bean definition for the filesystem source manager
-
processIntermediateDirectoryStrategy
private void processIntermediateDirectoryStrategy(Element element, ParserContext parserContext, BeanDefinitionBuilder sourceManagerBuilder, boolean isDefaultSourceKeyGenerator)
Process options related to intermediate directory strategy and apply to the builder for theFilesystemLoadSaveManager.- Parameters:
element- the element being parsedparserContext- the current parser contextsourceManagerBuilder- the source build manager for the FilesystemLoadSaveManager being builtisDefaultSourceKeyGenerator- whether the internal default source key manager is being used
-
checkAndBuildPassthroughIntermediateDirectoryStrategy
private BeanDefinition checkAndBuildPassthroughIntermediateDirectoryStrategy(Element element, ParserContext parserContext)
Return bean definition for the default intermediate directory strategy with passthrough source strategy, if segmenting configuration params specified.- Parameters:
element- the element being parsedparserContext- the current parser context- Returns:
- the strategy bean definition, or null if not configured
-
-