org.ektorp.spring
Class HttpClientFactoryBean

java.lang.Object
  extended by 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

Field Summary
 boolean autoUpdateViewOnChange
           
 int connectionTimeout
           
 java.lang.String host
           
 int maxConnections
           
 int port
           
 int socketTimeout
           
 
Constructor Summary
HttpClientFactoryBean()
           
 
Method Summary
 HttpClient getObject()
           
 java.lang.Class<? extends HttpClient> getObjectType()
           
 boolean isSingleton()
           
 void setAutoUpdateViewOnChange(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

HttpClientFactoryBean

public HttpClientFactoryBean()
Method Detail

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.