Class ScriptedMatcherParser
java.lang.Object
org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
net.shibboleth.shared.spring.custom.AbstractCustomBeanDefinitionParser
net.shibboleth.idp.attribute.filter.spring.BaseFilterParser
net.shibboleth.idp.attribute.filter.spring.basic.impl.ScriptedMatcherParser
- All Implemented Interfaces:
BeanDefinitionParser
Bean definition parser for
ScriptedPolicyRule or ScriptedMatcher objects.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.LoggerClass logger.static final QNameSchema type.static final QNameInline Script element name.static final QNameScript file element name.Fields inherited from class net.shibboleth.idp.attribute.filter.spring.BaseFilterParser
AFP_ELEMENT_NAME, DENY_VALUE_RULE, NAMESPACE, PERMIT_VALUE_RULE, POLICY_REQUIREMENT_RULE, QUALIFIED_IDFields inherited from class net.shibboleth.shared.spring.custom.AbstractCustomBeanDefinitionParser
CUSTOM_PARSER_PROPERTIES_LOCATIONFields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE, NAME_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoParse(Element config, ParserContext parserContext, BeanDefinitionBuilder builder) Both types of bean take the same constructor, so the parser is simplified.protected Class<?>getBeanClass(Element element) Methods inherited from class net.shibboleth.idp.attribute.filter.spring.BaseFilterParser
getAbsoluteReference, getQualifiedId, isPolicyRule, parseCustomElements, resolveIdMethods inherited from class net.shibboleth.shared.spring.custom.AbstractCustomBeanDefinitionParser
getCustomProperty, registerBeanDefinitionMethods inherited from class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
doParse, getBeanClassName, getParentName, parseInternalMethods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
parse, postProcessComponentDefinition, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliases
-
Field Details
-
SCHEMA_TYPE
Schema type. -
SCRIPT_FILE_ELEMENT_NAME
Script file element name. -
SCRIPT_ELEMENT_NAME
Inline Script element name. -
log
@Nonnull private final org.slf4j.Logger logClass logger.
-
-
Constructor Details
-
ScriptedMatcherParser
public ScriptedMatcherParser()
-
-
Method Details
-
getBeanClass
- Overrides:
getBeanClassin classAbstractSingleBeanDefinitionParser
-
doParse
protected void doParse(@Nonnull Element config, @Nonnull ParserContext parserContext, @Nonnull BeanDefinitionBuilder builder) Calculate the qualified id once, and set both the id property as well as a qualified id metadata attribute used by the
BaseFilterParser.resolveId(Element, AbstractBeanDefinition, ParserContext)method.If we auto-generate a name then we issue a warning so users can (1) correct this, but also so they can make sense of the logging in the filters which uses the id extensively.
Both types of bean take the same constructor, so the parser is simplified.- Overrides:
doParsein classBaseFilterParser
-