FileDocCategorySizeDatePackage
ConnManagerParamBean.javaAPI DocAndroid 1.5 API2481Wed May 06 22:41:10 BST 2009org.apache.http.conn.params

ConnManagerParamBean

public class ConnManagerParamBean extends HttpAbstractParamBean
Allows for setting parameters relating to connection managers on {@link HttpParams}. This class ensures that the values set on the params are type-safe.

Fields Summary
Constructors Summary
public ConnManagerParamBean(HttpParams params)

        super(params);
    
Methods Summary
public voidsetConnectionsPerRoute(org.apache.http.conn.params.ConnPerRouteBean connPerRoute)

see
ConnManagerPNames#MAX_CONNECTIONS_PER_ROUTE

        params.setParameter(ConnManagerPNames.MAX_CONNECTIONS_PER_ROUTE, connPerRoute);
    
public voidsetMaxTotalConnections(int maxConnections)

see
ConnManagerPNames#MAX_TOTAL_CONNECTIONS

        params.setIntParameter(ConnManagerPNames.MAX_TOTAL_CONNECTIONS, maxConnections);
    
public voidsetTimeout(long timeout)

        params.setLongParameter(ConnManagerPNames.TIMEOUT, timeout);