Package net.shibboleth.spring.metadata
Class AbstractDynamicHTTPMetadataProviderParser
java.lang.Object
org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
net.shibboleth.shared.spring.custom.AbstractCustomBeanDefinitionParser
net.shibboleth.spring.metadata.AbstractMetadataProviderParser
net.shibboleth.spring.metadata.AbstractDynamicMetadataProviderParser
net.shibboleth.spring.metadata.AbstractDynamicHTTPMetadataProviderParser
- All Implemented Interfaces:
BeanDefinitionParser
- Direct Known Subclasses:
DynamicHTTPMetadataProviderParser
public abstract class AbstractDynamicHTTPMetadataProviderParser
extends AbstractDynamicMetadataProviderParser
Parser for abstract dynamic HTTP metadata resolvers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Class<?>Default caching type .private static final StringDefault request connection timeout.private static final StringDefault connection timeout.private static final IntegerDefault max connections per route.private static final IntegerDefault max total connections.private static final StringDefault socket timeout.private final org.slf4j.LoggerLogger.Fields inherited from class net.shibboleth.spring.metadata.AbstractMetadataProviderParser
CHAINING_PROVIDER_ELEMENT_NAME, METADATA_FILTER_ELEMENT_NAME, METADATA_NAMESPACE, SECURITY_NAMESPACE, TRUST_ENGINE_ELEMENT_NAMEFields 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 TypeMethodDescriptionprivate BeanDefinitionbuildHttpClient(Element element, ParserContext parserContext, BeanDefinition httpClientSecurityParameters) Build the definition of the HTTPClientBuilder which contains all our configuration.protected voiddoNativeParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) Parse the element into the provider builder.Methods inherited from class net.shibboleth.spring.metadata.AbstractDynamicMetadataProviderParser
getParserPoolRef, getTaskTimerRef, processPersistentCachingProperties, processTimingPropertiesMethods inherited from class net.shibboleth.spring.metadata.AbstractMetadataProviderParser
doParse, getBeanClass, getNativeBeanClassMethods 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, resolveId, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliases
-
Field Details
-
DEFAULT_CACHING_CLASS
Default caching type . -
DEFAULT_MAX_CONNECTIONS_TOTAL
Default max total connections. -
DEFAULT_MAX_CONNECTIONS_PER_ROUTE
Default max connections per route. -
DEFAULT_CONNECTION_REQUEST_TIMEOUT
Default request connection timeout.- See Also:
-
DEFAULT_CONNECTION_TIMEOUT
Default connection timeout.- See Also:
-
DEFAULT_SOCKET_TIMEOUT
Default socket timeout.- See Also:
-
log
private final org.slf4j.Logger logLogger.
-
-
Constructor Details
-
AbstractDynamicHTTPMetadataProviderParser
public AbstractDynamicHTTPMetadataProviderParser()
-
-
Method Details
-
doNativeParse
protected void doNativeParse(@Nonnull Element element, @Nonnull ParserContext parserContext, @Nonnull BeanDefinitionBuilder builder) Parse the element into the provider builder. This has the same function as the more usualAbstractSingleBeanDefinitionParser.doParse(Element, ParserContext, BeanDefinitionBuilder)but it may need to be shimmed in this class which may need to insert an extra bean. We assume that we will be summoning up a class which extends anAbstractDynamicMetadataResolver.- Overrides:
doNativeParsein classAbstractDynamicMetadataProviderParser- Parameters:
element- the XML element being parsedparserContext- the object encapsulating the current state of the parsing processbuilder- used to define theBeanDefinition- See Also:
-
buildHttpClient
@Nonnull private BeanDefinition buildHttpClient(@Nonnull Element element, @Nonnull ParserContext parserContext, @Nullable BeanDefinition httpClientSecurityParameters) Build the definition of the HTTPClientBuilder which contains all our configuration.- Parameters:
element- the HTTPMetadataProvider parser.parserContext- the contexthttpClientSecurityParameters- the client security parameters to be used- Returns:
- the bean definition with the parameters. Either httpClientSecurityParametersRef or httpClientSecurityParameters can be present, not both.
-