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
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)
Copyright © 2010. All Rights Reserved.