public class HTTPMetadataProviderBeanDefinitionParser extends AbstractReloadingMetadataProviderBeanDefinitionParser
| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
log
Class logger.
|
static QName |
TYPE_NAME
Schema type name.
|
| Constructor and Description |
|---|
HTTPMetadataProviderBeanDefinitionParser() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.commons.httpclient.HttpClient |
buildHttpClient(Element config,
String providerId,
URL metadataURL)
Builds the HTTP client used to fetch metadata.
|
protected X509TrustManager |
buildNoTrustTrustManager()
Builds a
X509TrustManager which bypasses all X.509 validation steps. |
protected void |
doParse(Element config,
org.springframework.beans.factory.xml.ParserContext parserContext,
org.springframework.beans.factory.support.BeanDefinitionBuilder builder) |
protected Class |
getBeanClass(Element element) |
protected void |
setHttpBasicAuthSettings(org.apache.commons.httpclient.HttpClient httpClient,
Element config,
String providerId,
URL metadataURL)
Sets the basic authentication properties, if any, for the HTTP client used to fetch metadata.
|
protected void |
setHttpProxySettings(HttpClientBuilder builder,
Element config,
String providerId)
Sets the HTTP proxy properties, if any, for the HTTP client used to fetch metadata.
|
getMaxRefreshDelay, getMinRefreshDelay, getParserPoolRef, getRefreshDelayFactor, getTaskTimerRefgetFailFastInitializationgetProviderId, getRequireValidMetadatadoParse, getBeanClassName, getParentName, parseInternalpublic static final QName TYPE_NAME
private org.slf4j.Logger log
public HTTPMetadataProviderBeanDefinitionParser()
protected Class getBeanClass(Element element)
getBeanClass in class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParserprotected void doParse(Element config, org.springframework.beans.factory.xml.ParserContext parserContext, org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
doParse in class AbstractReloadingMetadataProviderBeanDefinitionParserprotected org.apache.commons.httpclient.HttpClient buildHttpClient(Element config, String providerId, URL metadataURL)
config - the metadata provider configuration elementproviderId - the ID of the metadata providermetadataURL - the URL from which metadata will be fetchedprotected X509TrustManager buildNoTrustTrustManager()
X509TrustManager which bypasses all X.509 validation steps.protected void setHttpProxySettings(HttpClientBuilder builder, Element config, String providerId)
builder - the HTTP client builderconfig - the metadata provider configurationproviderId - the ID of the metadata providerprotected void setHttpBasicAuthSettings(org.apache.commons.httpclient.HttpClient httpClient,
Element config,
String providerId,
URL metadataURL)
httpClient - the HTTP clientconfig - the metadata provider configurationproviderId - the ID of the metadata providermetadataURL - the URL from which metadata will be fetchedCopyright © 1999-2015. All Rights Reserved.