Class LDAPDataConnectorParser
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.dc.AbstractDataConnectorParser
net.shibboleth.idp.attribute.resolver.spring.dc.ldap.impl.LDAPDataConnectorParser
- All Implemented Interfaces:
BeanDefinitionParser
Bean definition Parser for a
LDAPDataConnector
. Note That parsing the V2 configuration will set some
beans with hard wired defaults. See doV2Parse(Element, ParserContext, BeanDefinitionBuilder)
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Utility class for parsing v2 schema configuration. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.Logger
Class logger.static final QName
Schema type - resolver.Fields inherited from class net.shibboleth.idp.attribute.resolver.spring.dc.AbstractDataConnectorParser
ATTR_EXPORT_ALL, ATTR_EXPORT_NAMES, ATTR_FACTORY_POSTPROCESSORS_REF, ATTR_FAIL_FAST, ATTR_NORETRYDELAY, ATTR_POSTPROCESSORS_REF, ATTR_SPRING_RESOURCE, ATTR_SPRING_RESOURCE_REF, ELEMENT_NAME, FAILOVER_DATA_CONNECTOR_ELEMENT_NAME
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE, NAME_ATTRIBUTE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doV2Parse
(Element config, ParserContext parserContext, BeanDefinitionBuilder builder) Parses a version 2 configuration.protected Class<LDAPDataConnector>
Per parser indication of what we are building.Methods inherited from class net.shibboleth.idp.attribute.resolver.spring.dc.AbstractDataConnectorParser
doParse, getBeanClass, getLogPrefix, isNative
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, getBeanClassName, getParentName, parseInternal
Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
parse, postProcessComponentDefinition, resolveId, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliases
-
Field Details
-
TYPE_NAME_RESOLVER
Schema type - resolver. -
log
@Nonnull private final org.slf4j.Logger logClass logger.
-
-
Constructor Details
-
LDAPDataConnectorParser
public LDAPDataConnectorParser()
-
-
Method Details
-
getNativeBeanClass
Per parser indication of what we are building.- Specified by:
getNativeBeanClass
in classAbstractDataConnectorParser
- Returns:
- the class
-
doV2Parse
protected void doV2Parse(@Nonnull Element config, @Nonnull ParserContext parserContext, @Nonnull BeanDefinitionBuilder builder) Parses a version 2 configuration.The following automatically created & injected beans acquire hard wired defaults:
SearchRequest.setTimeLimit(Duration)
defaults to 3s, overridden by the "searchTimeLimit" attribute.SearchRequest.setSizeLimit(long)
defaults to 1, overridden by the "maxResultSize" attribute.SearchRequest.setBaseDn(String)
default to "", overridden by the "validateDN" attribute.SearchFilter(String)
defaults to "(objectClass=*)", overridden by the "validateFilter" attribute.PoolConfig.setMinPoolSize(int)
defaults to 0 if neither the attribute "poolInitialSize" nor the attribute "minPoolSize" are set.PoolConfig.setMaxPoolSize(int)
defaults to 3 if neither the attribute "poolMaxIdleSize" nor the attribute "maxPoolSize" are set.PoolConfig.setValidatePeriod(Duration)
defaults to 30m, overridden by the attribute "validateTimerPeriod"
- Specified by:
doV2Parse
in classAbstractDataConnectorParser
- Parameters:
config
- LDAPDirectory containing v2 configurationparserContext
- bean definition parsing contextbuilder
- to initialize- See Also:
-