public class HttpClientFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<org.apache.http.client.HttpClient>, org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
HttpClientFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
org.apache.http.client.HttpClient |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setConnectionTimeout(int connectionTimeout) |
void |
setMaxConnectionsPerRoute(int maxConnectionsPerRoute) |
void |
setMaxTotalConnections(int maxTotalConnections) |
void |
setSoTimeout(int soTimeout) |
void |
setTimeout(int timeout) |
void |
setTimeToLive(int timeToLive) |
public void setMaxTotalConnections(int maxTotalConnections)
public void setMaxConnectionsPerRoute(int maxConnectionsPerRoute)
public void setSoTimeout(int soTimeout)
public void setConnectionTimeout(int connectionTimeout)
public void setTimeToLive(int timeToLive)
public void setTimeout(int timeout)
public org.apache.http.client.HttpClient getObject()
throws Exception
getObject in interface org.springframework.beans.factory.FactoryBean<org.apache.http.client.HttpClient>Exceptionpublic Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<org.apache.http.client.HttpClient>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<org.apache.http.client.HttpClient>Copyright © 2015–2022 cn.gtmap. All rights reserved.