org.ektorp.spring
Class HttpClientFactoryBean
java.lang.Object
org.ektorp.spring.HttpClientFactoryBean
- All Implemented Interfaces:
- org.springframework.beans.factory.FactoryBean<HttpClient>
public class HttpClientFactoryBean
- extends java.lang.Object
- implements org.springframework.beans.factory.FactoryBean<HttpClient>
FactoryBean that produces a HttpClient.
Configuration parameters are set through @Value annotations.
The application context must define properties along the line of:
- Author:
- henrik lundgren
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
host
public java.lang.String host
port
public int port
maxConnections
public int maxConnections
connectionTimeout
public int connectionTimeout
socketTimeout
public int socketTimeout
autoUpdateViewOnChange
public boolean autoUpdateViewOnChange
username
public java.lang.String username
password
public java.lang.String password
testConnectionAtStartup
public boolean testConnectionAtStartup
cleanupIdleConnections
public boolean cleanupIdleConnections
enableSSL
public boolean enableSSL
relaxedSSLSettings
public boolean relaxedSSLSettings
HttpClientFactoryBean
public HttpClientFactoryBean()
getObject
public HttpClient getObject()
throws java.lang.Exception
- Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean<HttpClient>
- Throws:
java.lang.Exception
getObjectType
public java.lang.Class<? extends HttpClient> getObjectType()
- Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean<HttpClient>
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean<HttpClient>
setAutoUpdateViewOnChange
public void setAutoUpdateViewOnChange(boolean b)
setUsername
public void setUsername(java.lang.String user)
setPassword
public void setPassword(java.lang.String s)
setTestConnectionAtStartup
public void setTestConnectionAtStartup(boolean b)
setSslSocketFactory
public void setSslSocketFactory(org.apache.http.conn.ssl.SSLSocketFactory sslSocketFactory)
Copyright © 2011. All Rights Reserved.