Class AbstractDynamicHTTPMetadataProviderParser
- java.lang.Object
-
- org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
-
- org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
-
- net.shibboleth.ext.spring.util.AbstractCustomBeanDefinitionParser
-
- net.shibboleth.idp.profile.spring.relyingparty.metadata.AbstractMetadataProviderParser
-
- net.shibboleth.idp.profile.spring.relyingparty.metadata.impl.AbstractDynamicMetadataProviderParser
-
- net.shibboleth.idp.profile.spring.relyingparty.metadata.impl.AbstractDynamicHTTPMetadataProviderParser
-
- All Implemented Interfaces:
BeanDefinitionParser
- Direct Known Subclasses:
DynamicHTTPMetadataProviderParser
public abstract class AbstractDynamicHTTPMetadataProviderParser extends AbstractDynamicMetadataProviderParser
Parser for abstract dynamic HTTP metadata resolvers.
-
-
Field Summary
Fields Modifier and Type Field Description private static Class<?>DEFAULT_CACHING_CLASSDefault caching type .private static StringDEFAULT_CONNECTION_REQUEST_TIMEOUTDefault request connection timeout.private static StringDEFAULT_CONNECTION_TIMEOUTDefault connection timeout.private static IntegerDEFAULT_MAX_CONNECTIONS_PER_ROUTEDefault max connections per route.private static IntegerDEFAULT_MAX_CONNECTIONS_TOTALDefault max total connections.private static StringDEFAULT_SOCKET_TIMEOUTDefault socket timeout.private org.slf4j.LoggerlogLogger.-
Fields inherited from class net.shibboleth.idp.profile.spring.relyingparty.metadata.AbstractMetadataProviderParser
CHAINING_PROVIDER_ELEMENT_NAME, METADATA_FILTER_ELEMENT_NAME, METADATA_NAMESPACE, SECURITY_NAMESPACE, TRUST_ENGINE_ELEMENT_NAME
-
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE, NAME_ATTRIBUTE
-
-
Constructor Summary
Constructors Constructor Description AbstractDynamicHTTPMetadataProviderParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private BeanDefinitionbuildHttpClient(Element element, ParserContext parserContext, String httpClientSecurityParametersRef, 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.idp.profile.spring.relyingparty.metadata.impl.AbstractDynamicMetadataProviderParser
getParserPoolRef, getTaskTimerRef, processPersistentCachingProperties, processTimingProperties
-
Methods inherited from class net.shibboleth.idp.profile.spring.relyingparty.metadata.AbstractMetadataProviderParser
doParse, getBeanClass, getNativeBeanClass
-
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 Detail
-
DEFAULT_CACHING_CLASS
private static final Class<?> DEFAULT_CACHING_CLASS
Default caching type .
-
DEFAULT_MAX_CONNECTIONS_TOTAL
private static final Integer DEFAULT_MAX_CONNECTIONS_TOTAL
Default max total connections.
-
DEFAULT_MAX_CONNECTIONS_PER_ROUTE
private static final Integer DEFAULT_MAX_CONNECTIONS_PER_ROUTE
Default max connections per route.
-
DEFAULT_CONNECTION_REQUEST_TIMEOUT
private static final String DEFAULT_CONNECTION_REQUEST_TIMEOUT
Default request connection timeout.- See Also:
- Constant Field Values
-
DEFAULT_CONNECTION_TIMEOUT
private static final String DEFAULT_CONNECTION_TIMEOUT
Default connection timeout.- See Also:
- Constant Field Values
-
DEFAULT_SOCKET_TIMEOUT
private static final String DEFAULT_SOCKET_TIMEOUT
Default socket timeout.- See Also:
- Constant Field Values
-
log
private final org.slf4j.Logger log
Logger.
-
-
Method Detail
-
doNativeParse
protected void doNativeParse(Element element, ParserContext parserContext, 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:
AbstractSingleBeanDefinitionParser.doParse(Element, BeanDefinitionBuilder)
-
buildHttpClient
private BeanDefinition buildHttpClient(Element element, ParserContext parserContext, @Nullable String httpClientSecurityParametersRef, @Nullable BeanDefinition httpClientSecurityParameters)
Build the definition of the HTTPClientBuilder which contains all our configuration.- Parameters:
element- the HTTPMetadataProvider parser.parserContext- the contexthttpClientSecurityParametersRef- the client security parameters ref to be usedhttpClientSecurityParameters- the client security parameters to be used- Returns:
- the bean definition with the parameters. Either httpClientSecurityParametersRef or httpClientSecurityParameters can be present, not both.
-
-