Class BaseAttributeDefinitionParser
- java.lang.Object
-
- org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
-
- org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
-
- net.shibboleth.ext.spring.util.AbstractCustomBeanDefinitionParser
-
- net.shibboleth.idp.attribute.resolver.spring.BaseResolverPluginParser
-
- net.shibboleth.idp.attribute.resolver.spring.ad.BaseAttributeDefinitionParser
-
- All Implemented Interfaces:
BeanDefinitionParser
- Direct Known Subclasses:
ContextDerivedAttributeDefinitionParser,DecryptedAttributeDefinitionParser,PrescopedAttributeDefinitionParser,PrincipalNameAttributeDefinitionParser,RegexSplitAttributeDefinitionParser,SAML1NameIdentifierAttributeDefinitionParser,SAML2NameIDAttributeDefinitionParser,ScopedAttributeDefinitionParser,ScriptedAttributeDefinitionParser,SimpleAttributeDefinitionParser,SubjectDerivedAttributeDefinitionParser,TemplateAttributeDefinitionParser
public abstract class BaseAttributeDefinitionParser extends BaseResolverPluginParser
Base spring bean definition parser for attribute definitions. AttributeDefinition implementations should provide a custom BeanDefinitionParser by extending this class and overriding the doParse() method to parse any additional attributes or elements it requires. Standard attributes and elements defined by the ResolutionPlugIn and AttributeDefinition schemas will automatically attempt to be parsed.
-
-
Field Summary
Fields Modifier and Type Field Description static QNameATTRIBUTE_ENCODER_ELEMENT_NAMELocal name of attribute encoder.static QNameELEMENT_NAMEElement name.private org.slf4j.LoggerlogClass logger.-
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE, NAME_ATTRIBUTE
-
-
Constructor Summary
Constructors Constructor Description BaseAttributeDefinitionParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoParse(Element config, ParserContext parserContext, BeanDefinitionBuilder builder)protected StringgetLogPrefix()Return a string which is to be prepended to all log messages.-
Methods inherited from class net.shibboleth.idp.attribute.resolver.spring.BaseResolverPluginParser
failOnDependencies, getActivationCondition, getDefinitionId, warnOnDependencies
-
Methods inherited from class net.shibboleth.ext.spring.util.AbstractCustomBeanDefinitionParser
registerBeanDefinition
-
Methods inherited from class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
doParse, getBeanClass, getBeanClassName, getParentName, parseInternal
-
Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
parse, postProcessComponentDefinition, resolveId, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliases
-
-
-
-
Method Detail
-
doParse
protected void doParse(@Nonnull Element config, @Nonnull ParserContext parserContext, @Nonnull BeanDefinitionBuilder builder)- Overrides:
doParsein classBaseResolverPluginParser
-
getLogPrefix
@Nonnull @NotEmpty protected String getLogPrefix()
Return a string which is to be prepended to all log messages.- Overrides:
getLogPrefixin classBaseResolverPluginParser- Returns:
- "Attribute Definition '<definitionID>' :"
-
-