Class DynamicHTTPMetadataProviderParser
- 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
-
- net.shibboleth.idp.profile.spring.relyingparty.metadata.impl.DynamicHTTPMetadataProviderParser
-
- All Implemented Interfaces:
BeanDefinitionParser
public class DynamicHTTPMetadataProviderParser extends AbstractDynamicHTTPMetadataProviderParser
Parser for concrete dynamic HTTP metadata resolvers, based onFunctionDrivenDynamicHTTPMetadataResolver.
-
-
Field Summary
Fields Modifier and Type Field Description private static StringDEFAULT_VELOCITY_ENGINE_REFName of default VelocityEngine bean to use.static QNameELEMENT_NAMEElement name.private static QNameMETADATA_QUERY_PROTOCOLMetadataQueryProtocol child element name.private static QNameREGEXRegex child element name.private static QNameTEMPLATETemplate child element name.-
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 DynamicHTTPMetadataProviderParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoNativeParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder)Parse the element into the provider builder.protected Class<? extends MetadataResolver>getNativeBeanClass(Element element)Return the real class implement by this type.protected BeanDefinitiongetRequestURLBuilder(Element element, BeanDefinitionBuilder parentBuilder)Build and return an instance of theFunctionused as the request URL builder.private StringparseTemplateEncodingStyle(Element template)Parse the 'encodingStyle' attributes for Template element types.-
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
-
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
-
ELEMENT_NAME
public static final QName ELEMENT_NAME
Element name.
-
TEMPLATE
private static final QName TEMPLATE
Template child element name.
-
REGEX
private static final QName REGEX
Regex child element name.
-
METADATA_QUERY_PROTOCOL
private static final QName METADATA_QUERY_PROTOCOL
MetadataQueryProtocol child element name.
-
DEFAULT_VELOCITY_ENGINE_REF
private static final String DEFAULT_VELOCITY_ENGINE_REF
Name of default VelocityEngine bean to use.- See Also:
- Constant Field Values
-
-
Method Detail
-
getNativeBeanClass
protected Class<? extends MetadataResolver> getNativeBeanClass(Element element)
Return the real class implement by this type. This has the same function as the more usualAbstractSingleBeanDefinitionParser.getBeanClass(Element)but it may need to be shimmed inAbstractMetadataProviderParserwhich may need to insert an extra bean.- Specified by:
getNativeBeanClassin classAbstractMetadataProviderParser- Parameters:
element- theElementthat is being parsed- Returns:
- the
Classof the bean that is being defined via parsing the suppliedElement, ornullif none - See Also:
AbstractSingleBeanDefinitionParser.getBeanClassName(org.w3c.dom.Element)
-
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 classAbstractDynamicHTTPMetadataProviderParser- 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)
-
getRequestURLBuilder
protected BeanDefinition getRequestURLBuilder(Element element, BeanDefinitionBuilder parentBuilder)
Build and return an instance of theFunctionused as the request URL builder.- Parameters:
element- the parent metadata provider elementparentBuilder- metadata provider element's bean builder- Returns:
- the function
-
-