public class SimpleHttpClientFactoryBean extends java.lang.Object implements org.springframework.beans.factory.FactoryBean<SimpleHttpClient>
SimpleHttpClient
.Modifier and Type | Class and Description |
---|---|
static class |
SimpleHttpClientFactoryBean.DefaultHttpClient
The type Default http client.
|
static class |
SimpleHttpClientFactoryBean.SslTrustStoreAwareHttpClient
The type Ssl trust store aware http client.
|
Modifier and Type | Field and Description |
---|---|
static int |
MAX_CONNECTIONS_PER_ROUTE
Max connections per route.
|
Constructor and Description |
---|
SimpleHttpClientFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy.
|
java.util.List<java.lang.Integer> |
getAcceptableCodes() |
org.apache.http.client.ConnectionBackoffStrategy |
getConnectionBackoffStrategy() |
org.apache.http.ConnectionReuseStrategy |
getConnectionReuseStrategy() |
long |
getConnectionTimeout() |
org.apache.http.client.CookieStore |
getCookieStore() |
org.apache.http.client.CredentialsProvider |
getCredentialsProvider() |
java.util.Collection<? extends org.apache.http.Header> |
getDefaultHeaders() |
java.util.concurrent.ExecutorService |
getExecutorService() |
javax.net.ssl.HostnameVerifier |
getHostnameVerifier() |
int |
getMaxConnectionsPerRoute() |
int |
getMaxPooledConnections() |
SimpleHttpClient |
getObject() |
java.lang.Class<?> |
getObjectType() |
org.apache.http.client.AuthenticationStrategy |
getProxyAuthenticationStrategy() |
int |
getQueueSize() |
int |
getReadTimeout() |
org.apache.http.client.RedirectStrategy |
getRedirectionStrategy() |
org.apache.http.client.ServiceUnavailableRetryStrategy |
getServiceUnavailableRetryStrategy() |
org.apache.http.conn.ssl.SSLConnectionSocketFactory |
getSslSocketFactory() |
int |
getThreadsNumber() |
boolean |
isAuthenticationEnabled() |
boolean |
isCircularRedirectsAllowed() |
boolean |
isRedirectsEnabled() |
boolean |
isSingleton() |
void |
setAcceptableCodes(int[] acceptableCodes) |
void |
setAuthenticationEnabled(boolean authenticationEnabled) |
void |
setCircularRedirectsAllowed(boolean circularRedirectsAllowed) |
void |
setConnectionBackoffStrategy(org.apache.http.client.ConnectionBackoffStrategy connectionBackoffStrategy) |
void |
setConnectionReuseStrategy(org.apache.http.ConnectionReuseStrategy connectionReuseStrategy) |
void |
setConnectionTimeout(long connectionTimeout) |
void |
setCookieStore(org.apache.http.client.CookieStore cookieStore) |
void |
setCredentialsProvider(org.apache.http.client.CredentialsProvider credentialsProvider) |
void |
setDefaultHeaders(java.util.Collection<? extends org.apache.http.Header> defaultHeaders) |
void |
setExecutorService(java.util.concurrent.ExecutorService executorService) |
void |
setHostnameVerifier(javax.net.ssl.HostnameVerifier hostnameVerifier) |
void |
setMaxConnectionsPerRoute(int maxConnectionsPerRoute) |
void |
setMaxPooledConnections(int maxPooledConnections) |
void |
setProxyAuthenticationStrategy(org.apache.http.client.AuthenticationStrategy proxyAuthenticationStrategy) |
void |
setQueueSize(int queueSize) |
void |
setReadTimeout(int readTimeout) |
void |
setRedirectionStrategy(org.apache.http.client.RedirectStrategy redirectionStrategy) |
void |
setRedirectsEnabled(boolean redirectsEnabled) |
void |
setServiceUnavailableRetryStrategy(org.apache.http.client.ServiceUnavailableRetryStrategy serviceUnavailableRetryStrategy) |
void |
setSslSocketFactory(org.apache.http.conn.ssl.SSLConnectionSocketFactory sslSocketFactory) |
void |
setThreadsNumber(int threadsNumber) |
public static final int MAX_CONNECTIONS_PER_ROUTE
public SimpleHttpClient getObject()
getObject
in interface org.springframework.beans.factory.FactoryBean<SimpleHttpClient>
public java.lang.Class<?> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<SimpleHttpClient>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<SimpleHttpClient>
public java.util.concurrent.ExecutorService getExecutorService()
public void setExecutorService(java.util.concurrent.ExecutorService executorService)
public int getThreadsNumber()
public void setThreadsNumber(int threadsNumber)
public int getQueueSize()
public void setQueueSize(int queueSize)
public int getMaxPooledConnections()
public void setMaxPooledConnections(int maxPooledConnections)
public int getMaxConnectionsPerRoute()
public void setMaxConnectionsPerRoute(int maxConnectionsPerRoute)
public java.util.List<java.lang.Integer> getAcceptableCodes()
public void setAcceptableCodes(int[] acceptableCodes)
public long getConnectionTimeout()
public void setConnectionTimeout(long connectionTimeout)
public int getReadTimeout()
public void setReadTimeout(int readTimeout)
public org.apache.http.client.RedirectStrategy getRedirectionStrategy()
public void setRedirectionStrategy(org.apache.http.client.RedirectStrategy redirectionStrategy)
public org.apache.http.conn.ssl.SSLConnectionSocketFactory getSslSocketFactory()
public void setSslSocketFactory(org.apache.http.conn.ssl.SSLConnectionSocketFactory sslSocketFactory)
public javax.net.ssl.HostnameVerifier getHostnameVerifier()
public void setHostnameVerifier(javax.net.ssl.HostnameVerifier hostnameVerifier)
public org.apache.http.client.CredentialsProvider getCredentialsProvider()
public void setCredentialsProvider(org.apache.http.client.CredentialsProvider credentialsProvider)
public org.apache.http.client.CookieStore getCookieStore()
public void setCookieStore(org.apache.http.client.CookieStore cookieStore)
public org.apache.http.ConnectionReuseStrategy getConnectionReuseStrategy()
public void setConnectionReuseStrategy(org.apache.http.ConnectionReuseStrategy connectionReuseStrategy)
public org.apache.http.client.ConnectionBackoffStrategy getConnectionBackoffStrategy()
public void setConnectionBackoffStrategy(org.apache.http.client.ConnectionBackoffStrategy connectionBackoffStrategy)
public org.apache.http.client.ServiceUnavailableRetryStrategy getServiceUnavailableRetryStrategy()
public void setServiceUnavailableRetryStrategy(org.apache.http.client.ServiceUnavailableRetryStrategy serviceUnavailableRetryStrategy)
public java.util.Collection<? extends org.apache.http.Header> getDefaultHeaders()
public void setDefaultHeaders(java.util.Collection<? extends org.apache.http.Header> defaultHeaders)
public org.apache.http.client.AuthenticationStrategy getProxyAuthenticationStrategy()
public void setProxyAuthenticationStrategy(org.apache.http.client.AuthenticationStrategy proxyAuthenticationStrategy)
public boolean isCircularRedirectsAllowed()
public void setCircularRedirectsAllowed(boolean circularRedirectsAllowed)
public boolean isAuthenticationEnabled()
public void setAuthenticationEnabled(boolean authenticationEnabled)
public boolean isRedirectsEnabled()
public void setRedirectsEnabled(boolean redirectsEnabled)
@PreDestroy public void destroy()