Class FileCachingHttpClientFactoryBean
java.lang.Object
net.shibboleth.shared.httpclient.HttpClientBuilder
net.shibboleth.shared.httpclient.FileCachingHttpClientBuilder
net.shibboleth.shared.spring.httpclient.factory.FileCachingHttpClientFactoryBean
- All Implemented Interfaces:
DisposableBean,FactoryBean<org.apache.hc.client5.http.classic.HttpClient>
public class FileCachingHttpClientFactoryBean
extends FileCachingHttpClientBuilder
implements FactoryBean<org.apache.hc.client5.http.classic.HttpClient>, DisposableBean
Factory bean version of
FileCachingHttpClientBuilder.
This is different than the other factories in order to limit non-singleton use and implement init/destroy. This can't handle prototypes but that makes no sense when you consider a shared cache in one directory wouldn't work anyway.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hc.client5.http.classic.HttpClientOur captive client in singleton cases.Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.shibboleth.shared.httpclient.FileCachingHttpClientBuilder
buildClient, decorateApacheBuilder, getCacheDirectory, getMaintentanceTaskInterval, getMaxCacheEntries, getMaxCacheEntrySize, setCacheDirectory, setCacheDirectory, setMaintentanceTaskInterval, setMaxCacheEntries, setMaxCacheEntrySizeMethods inherited from class net.shibboleth.shared.httpclient.HttpClientBuilder
buildConnectionFactory, buildConnectionManager, buildDefaultConnectionConfig, buildDefaultCredentialsProvider, buildDefaultRequestConfig, buildRoutePlanner, getConnectionProxyHost, getConnectionProxyPassword, getConnectionProxyPort, getConnectionProxyUsername, getConnectionRequestTimeout, getConnectionTimeout, getFirstRequestInterceptors, getFirstResponseInterceptors, getHttpContentCharSet, getHttpRequestRetryStrategy, getLastRequestInterceptors, getLastResponseInterceptors, getMaxConnectionsPerRoute, getMaxConnectionsTotal, getResponseTimeout, getSchemePortResolver, getSocketBufferSize, getSocketLocalAddress, getSocketTimeout, getStaticContextHandlers, getTLSSocketFactory, getUserAgent, handleFluentProperties, isConnectionCloseAfterResponse, isConnectionDisregardTLSCertificate, isDisableAuthCaching, isDisableAutomaticRetries, isDisableConnectionState, isDisableContentCompression, isDisableCookieManagement, isDisableRedirectHandling, isEvictExpiredConnections, isEvictIdleConnections, isHttpFollowRedirects, isUseSystemProperties, resetDefaults, setConnectionCloseAfterResponse, setConnectionDisregardTLSCertificate, setConnectionMaxIdleTime, setConnectionProxyHost, setConnectionProxyPassword, setConnectionProxyPort, setConnectionProxyUsername, setConnectionRequestTimeout, setConnectionTimeout, setDisableAuthCaching, setDisableAutomaticRetries, setDisableConnectionState, setDisableContentCompression, setDisableCookieManagement, setDisableRedirectHandling, setEvictExpiredConnections, setEvictIdleConnections, setFirstRequestInterceptors, setFirstResponseInterceptors, setHttpContentCharSet, setHttpFollowRedirects, setHttpRequestRetryStrategy, setLastRequestInterceptors, setLastResponseInterceptors, setMaxConnectionsPerRoute, setMaxConnectionsTotal, setResponseTimeout, setSchemePortResolver, setSocketBufferSize, setSocketLocalAddress, setSocketLocalAddress, setSocketTimeout, setStaticContextHandlers, setTLSSocketFactory, setUserAgent, setUseSystemProperties, setValidateAfterInactivity
-
Field Details
-
singletonInstance
@Nullable private org.apache.hc.client5.http.classic.HttpClient singletonInstanceOur captive client in singleton cases.
-
-
Constructor Details
-
FileCachingHttpClientFactoryBean
public FileCachingHttpClientFactoryBean()
-
-
Method Details
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceFactoryBean<org.apache.hc.client5.http.classic.HttpClient>
-
getObjectType
- Specified by:
getObjectTypein interfaceFactoryBean<org.apache.hc.client5.http.classic.HttpClient>
-
destroy
public void destroy()- Specified by:
destroyin interfaceDisposableBean
-
getObject
- Specified by:
getObjectin interfaceFactoryBean<org.apache.hc.client5.http.classic.HttpClient>- Throws:
Exception
-