Class HTTPDataConnectorParser.V2Parser
- java.lang.Object
-
- net.shibboleth.idp.attribute.resolver.spring.dc.http.impl.HTTPDataConnectorParser.V2Parser
-
- Enclosing class:
- HTTPDataConnectorParser
protected static class HTTPDataConnectorParser.V2Parser extends Object
Utility class for parsing v2 schema configuration.
-
-
Field Summary
Fields Modifier and Type Field Description private ElementconfigElementBase XML element.private org.slf4j.LoggerlogClass logger.private StringlogPrefixParent parser's log prefix.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BeanDefinitionbuildHttpClientSecurityParams(String id)Check for manually supplied settings and buildHttpClientSecurityParametersinstance.BeanDefinitioncreateBodyTemplateBuilder(BeanDefinition httpClientSecurityParams)Create the definition of the POST search builder.BeanDefinitioncreateCache(ParserContext parserContext)Create the results cache.BeanDefinitioncreateMappingStrategy(String id)Create the scripted result mapping strategy.BeanDefinitioncreateURLTemplateBuilder(BeanDefinition httpClientSecurityParams)Create the definition of the GET search builder.StringgetBeanHttpClientID()Get the bean ID of an externally defined HttpClient.StringgetBeanMappingStrategyID()Get the bean ID of an externally defined mapping strategy.StringgetBeanSearchBuilderID()Get the bean ID of an externally defined search builder.StringgetBeanValidatorID()Get the bean ID of an externally defined validator.private StringgetLogPrefix()The parent parser's log prefix.
-
-
-
Method Detail
-
getBeanHttpClientID
@Nullable public String getBeanHttpClientID()
Get the bean ID of an externally defined HttpClient.- Returns:
- HttpClient bean ID
-
getBeanSearchBuilderID
@Nullable public String getBeanSearchBuilderID()
Get the bean ID of an externally defined search builder.- Returns:
- search builder bean ID
-
createURLTemplateBuilder
@Nullable public BeanDefinition createURLTemplateBuilder(@Nullable BeanDefinition httpClientSecurityParams)
Create the definition of the GET search builder.- Parameters:
httpClientSecurityParams- instance ofHttpClientSecurityParametersto inject- Returns:
- the bean definition for the search builder
-
createBodyTemplateBuilder
@Nullable public BeanDefinition createBodyTemplateBuilder(@Nullable BeanDefinition httpClientSecurityParams)
Create the definition of the POST search builder.- Parameters:
httpClientSecurityParams- instance ofHttpClientSecurityParametersto inject- Returns:
- the bean definition for the search builder, or null
-
getBeanMappingStrategyID
@Nullable public String getBeanMappingStrategyID()
Get the bean ID of an externally defined mapping strategy.- Returns:
- mapping strategy bean ID
-
createMappingStrategy
@Nullable public BeanDefinition createMappingStrategy(@Nullable String id)
Create the scripted result mapping strategy.- Parameters:
id- the ID of the- Returns:
- mapping strategy
-
getBeanValidatorID
@Nullable public String getBeanValidatorID()
Get the bean ID of an externally defined validator.- Returns:
- validator bean ID
-
createCache
@Nullable public BeanDefinition createCache(@Nonnull ParserContext parserContext)
Create the results cache. SeeCacheConfigParser.- Parameters:
parserContext- bean parser context- Returns:
- results cache
-
buildHttpClientSecurityParams
@Nullable public BeanDefinition buildHttpClientSecurityParams(@Nullable String id)
Check for manually supplied settings and buildHttpClientSecurityParametersinstance.- Parameters:
id- connector ID- Returns:
- a bean definition if applicable
-
-