public class HttpClientFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<HttpClient>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
| Modifier and Type | Field and Description |
|---|---|
boolean |
autoUpdateViewOnChange |
boolean |
caching |
boolean |
cleanupIdleConnections |
protected HttpClient |
client |
int |
connectionTimeout |
boolean |
enableSSL |
String |
host |
int |
maxCacheEntries |
int |
maxConnections |
int |
maxObjectSizeBytes |
String |
password |
int |
port |
boolean |
relaxedSSLSettings |
int |
socketTimeout |
boolean |
testConnectionAtStartup |
String |
url |
String |
username |
| Constructor and Description |
|---|
HttpClientFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Create the couchDB connection when starting the bean factory
|
void |
destroy()
Shutdown the HTTP Client when destroying the bean
|
HttpClient |
getObject() |
Class<? extends HttpClient> |
getObjectType() |
boolean |
isSingleton() |
void |
setAutoUpdateViewOnChange(boolean b) |
void |
setCaching(boolean caching) |
void |
setCleanupIdleConnections(boolean cleanupIdleConnections) |
void |
setConnectionTimeout(int connectionTimeout) |
void |
setEnableSSL(boolean enableSSL) |
void |
setHost(String host) |
void |
setMaxCacheEntries(int maxCacheEntries) |
void |
setMaxConnections(int maxConnections) |
void |
setMaxObjectSizeBytes(int maxObjectSizeBytes) |
void |
setPassword(String s) |
void |
setPort(int port) |
void |
setProperties(Properties p) |
void |
setRelaxedSSLSettings(boolean relaxedSSLSettings) |
void |
setSocketTimeout(int socketTimeout) |
void |
setSslSocketFactory(org.apache.http.conn.ssl.SSLSocketFactory sslSocketFactory) |
void |
setTestConnectionAtStartup(boolean b) |
void |
setUrl(String url) |
void |
setUsername(String user) |
protected HttpClient client
public String url
public String host
public int port
public int maxConnections
public int connectionTimeout
public int socketTimeout
public boolean autoUpdateViewOnChange
public String username
public String password
public boolean testConnectionAtStartup
public boolean cleanupIdleConnections
public boolean enableSSL
public boolean relaxedSSLSettings
public boolean caching
public int maxCacheEntries
public int maxObjectSizeBytes
public HttpClient getObject() throws Exception
getObject in interface org.springframework.beans.factory.FactoryBean<HttpClient>Exceptionpublic Class<? extends HttpClient> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<HttpClient>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<HttpClient>public void setAutoUpdateViewOnChange(boolean b)
public void setUsername(String user)
public void setPassword(String s)
public void setTestConnectionAtStartup(boolean b)
public void setSslSocketFactory(org.apache.http.conn.ssl.SSLSocketFactory sslSocketFactory)
public void setHost(String host)
public void setPort(int port)
public void setMaxConnections(int maxConnections)
public void setConnectionTimeout(int connectionTimeout)
public void setSocketTimeout(int socketTimeout)
public void setCleanupIdleConnections(boolean cleanupIdleConnections)
public void setEnableSSL(boolean enableSSL)
public void setRelaxedSSLSettings(boolean relaxedSSLSettings)
public void setCaching(boolean caching)
public void setMaxCacheEntries(int maxCacheEntries)
public void setMaxObjectSizeBytes(int maxObjectSizeBytes)
public void setUrl(String url)
public void setProperties(Properties p)
public void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionCopyright © 2013. All Rights Reserved.