public class FileCachingHttpClientFactoryBean extends HttpClientFactoryBean
FileCachingHttpClientBuilder
and to then emit a HttpClient.
This class will likely either be removed or moved into an implementation package.
Use FileCachingHttpClientBuilder instead.
| Modifier and Type | Field and Description |
|---|---|
private List<HttpClient> |
clientRefs
Deprecated.
List of HttpClients produced by this factory, used to invoke their destroy()
when this factory instances is destroy()-ed.
|
| Constructor and Description |
|---|
FileCachingHttpClientFactoryBean()
Deprecated.
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected HttpClientBuilder |
createHttpClientBuilder()
Deprecated.
Create and return the instance of
HttpClientBuilder to use. |
protected HttpClient |
doCreateInstance()
Deprecated.
Call the parent class to create the instance.
|
void |
setCacheDirectory(String cacheDirectory)
Deprecated.
Set the cache directory path.
|
void |
setMaxCacheEntries(int maxCacheEntries)
Deprecated.
Set the maximum number of cached responses.
|
void |
setMaxCacheEntrySize(long maxCacheEntrySize)
Deprecated.
Set the maximum response body size, in bytes, that will be eligible for caching.
|
getHttpClientBuilder, getObjectType, setConnectionDisregardTLSCertificate, setConnectionProxyHost, setConnectionProxyPassword, setConnectionProxyPort, setConnectionProxyUsername, setConnectionRequestTimeout, setConnectionTimeout, setDisableContentCompression, setDisableCookieManagement, setMaxConnectionsPerRoute, setMaxConnectionsTotal, setSocketTimeout, setTLSSocketFactory, setUserAgentcreateInstance, destroyInstanceprivate List<HttpClient> clientRefs
public FileCachingHttpClientFactoryBean()
public void setCacheDirectory(String cacheDirectory)
cacheDirectory - The cacheDirectory to set.public void setMaxCacheEntries(int maxCacheEntries)
maxCacheEntries - The maxCacheEntries to set.public void setMaxCacheEntrySize(long maxCacheEntrySize)
maxCacheEntrySize - The maxCacheEntrySize to set.protected HttpClientBuilder createHttpClientBuilder()
HttpClientBuilder to use.
Subclasses may override to build a specialized subclass.createHttpClientBuilder in class HttpClientFactoryBeanprotected HttpClient doCreateInstance() throws Exception
doCreateInstance in class HttpClientFactoryBeanException - if needed.Copyright © 1999–2019 Shibboleth Consortium. All rights reserved.