Class HTTPDataConnectorParser.V2Parser
java.lang.Object
net.shibboleth.idp.attribute.resolver.spring.dc.http.impl.HTTPDataConnectorParser.V2Parser
- Enclosing class:
- HTTPDataConnectorParser
Utility class for parsing v2 schema configuration.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCheck for manually supplied settings and buildHttpClientSecurityParameters
instance.createBodyTemplateBuilder
(BeanDefinition httpClientSecurityParams) Create the definition of the POST search builder.createCache
(ParserContext parserContext) Create the results cache.Create the scripted result mapping strategy.createURLTemplateBuilder
(BeanDefinition httpClientSecurityParams) Create the definition of the GET search builder.Get the bean ID of an externally defined HttpClient.Get the bean ID of an externally defined mapping strategy.Get the bean ID of an externally defined search builder.Get the bean ID of an externally defined validator.private String
The parent parser's log prefix.
-
Field Details
-
configElement
Base XML element. -
log
@Nonnull private final org.slf4j.Logger logClass logger. -
logPrefix
Parent parser's log prefix.
-
-
Constructor Details
-
V2Parser
Creates a new V2Parser with the supplied element.- Parameters:
config
- HTTP DataConnector elementprefix
- the parent parser's log prefix.
-
-
Method Details
-
getBeanHttpClientID
Get the bean ID of an externally defined HttpClient.- Returns:
- HttpClient bean ID
-
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 ofHttpClientSecurityParameters
to 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 ofHttpClientSecurityParameters
to inject- Returns:
- the bean definition for the search builder, or null
-
getBeanMappingStrategyID
Get the bean ID of an externally defined mapping strategy.- Returns:
- mapping strategy bean ID
-
createMappingStrategy
Create the scripted result mapping strategy.- Parameters:
id
- the ID of the- Returns:
- mapping strategy
-
getBeanValidatorID
Get the bean ID of an externally defined validator.- Returns:
- validator bean ID
-
createCache
Create the results cache. SeeCacheConfigParser
.- Parameters:
parserContext
- bean parser context- Returns:
- results cache
-
buildHttpClientSecurityParams
Check for manually supplied settings and buildHttpClientSecurityParameters
instance.- Parameters:
id
- connector ID- Returns:
- a bean definition if applicable
-
getLogPrefix
The parent parser's log prefix.- Returns:
- the log prefix.
-