Home » commons-httpclient-3.1-src » org.apache.commons » httpclient » params » [javadoc | source]
org.apache.commons.httpclient.params
public class: HttpConnectionManagerParams [javadoc | source]
java.lang.Object
   org.apache.commons.httpclient.params.DefaultHttpParams
      org.apache.commons.httpclient.params.HttpConnectionParams
         org.apache.commons.httpclient.params.HttpConnectionManagerParams

All Implemented Interfaces:
    Cloneable, Serializable, HttpParams

This class represents a collection of HTTP protocol parameters applicable to HTTP connection managers . Protocol parameters may be linked together to form a hierarchy. If a particular parameter value has not been explicitly defined in the collection itself, its value will be drawn from the parent collection of parameters.
Field Summary
public static final  String MAX_HOST_CONNECTIONS    Defines the maximum number of connections allowed per host configuration. These values only apply to the number of connections from a particular instance of HttpConnectionManager.

This parameter expects a value of type java.util.Map . The value should map instances of org.apache.commons.httpclient.HostConfiguration to integers . The default value can be specified using org.apache.commons.httpclient.HostConfiguration#ANY_HOST_CONFIGURATION .

 
public static final  String MAX_TOTAL_CONNECTIONS    Defines the maximum number of connections allowed overall. This value only applies to the number of connections from a particular instance of HttpConnectionManager.

This parameter expects a value of type Integer .

 
Fields inherited from org.apache.commons.httpclient.params.HttpConnectionParams:
SO_TIMEOUT,  TCP_NODELAY,  SO_SNDBUF,  SO_RCVBUF,  SO_LINGER,  CONNECTION_TIMEOUT,  STALE_CONNECTION_CHECK
Method from org.apache.commons.httpclient.params.HttpConnectionManagerParams Summary:
getDefaultMaxConnectionsPerHost,   getMaxConnectionsPerHost,   getMaxTotalConnections,   setDefaultMaxConnectionsPerHost,   setMaxConnectionsPerHost,   setMaxTotalConnections
Methods from org.apache.commons.httpclient.params.HttpConnectionParams:
getConnectionTimeout,   getLinger,   getReceiveBufferSize,   getSendBufferSize,   getSoTimeout,   getTcpNoDelay,   isStaleCheckingEnabled,   setConnectionTimeout,   setLinger,   setReceiveBufferSize,   setSendBufferSize,   setSoTimeout,   setStaleCheckingEnabled,   setTcpNoDelay
Methods from org.apache.commons.httpclient.params.DefaultHttpParams:
clear,   clone,   getBooleanParameter,   getDefaultParams,   getDefaults,   getDoubleParameter,   getIntParameter,   getLongParameter,   getParameter,   isParameterFalse,   isParameterSet,   isParameterSetLocally,   isParameterTrue,   setBooleanParameter,   setDefaults,   setDoubleParameter,   setHttpParamsFactory,   setIntParameter,   setLongParameter,   setParameter,   setParameters
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.httpclient.params.HttpConnectionManagerParams Detail:
 public int getDefaultMaxConnectionsPerHost() 
    Gets the default maximum number of connections allowed for a given host config.
 public int getMaxConnectionsPerHost(HostConfiguration hostConfiguration) 
    Gets the maximum number of connections to be used for a particular host config. If the value has not been specified for the given host the default value will be returned.
 public int getMaxTotalConnections() 
    Gets the maximum number of connections allowed.
 public  void setDefaultMaxConnectionsPerHost(int maxHostConnections) 
    Sets the default maximum number of connections allowed for a given host config.
 public  void setMaxConnectionsPerHost(HostConfiguration hostConfiguration,
    int maxHostConnections) 
    Sets the maximum number of connections to be used for the given host config.
 public  void setMaxTotalConnections(int maxTotalConnections) 
    Sets the maximum number of connections allowed.