org.apache.commons.httpclient.params
Class HttpConnectionManagerParams
- Cloneable, HttpParams, Serializable
public class HttpConnectionManagerParams
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.
Version:
- Oleg Kalnichevski
- Michael Becke
- 3.0
getConnectionTimeout, getLinger, getReceiveBufferSize, getSendBufferSize, getSoTimeout, getTcpNoDelay, isStaleCheckingEnabled, setConnectionTimeout, setLinger, setReceiveBufferSize, setSendBufferSize, setSoTimeout, setStaleCheckingEnabled, setTcpNoDelay |
clear, clone, getBooleanParameter, getDefaultParams, getDefaults, getDoubleParameter, getIntParameter, getLongParameter, getParameter, isParameterFalse, isParameterSet, isParameterSetLocally, isParameterTrue, setBooleanParameter, setDefaults, setDoubleParameter, setHttpParamsFactory, setIntParameter, setLongParameter, setParameter, setParameters |
MAX_HOST_CONNECTIONS
public static 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
HostConfiguration
to
integers. The default value can be specified using
HostConfiguration.ANY_HOST_CONFIGURATION.
MAX_TOTAL_CONNECTIONS
public static 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.
getDefaultMaxConnectionsPerHost
public int getDefaultMaxConnectionsPerHost()
Gets the default maximum number of connections allowed for a given
host config.
- The default maximum.
MAX_HOST_CONNECTIONS
getMaxConnectionsPerHost
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.
hostConfiguration - The host config.
- The maximum number of connections to be used for the given host config.
MAX_HOST_CONNECTIONS
getMaxTotalConnections
public int getMaxTotalConnections()
Gets the maximum number of connections allowed.
- The maximum number of connections allowed.
MAX_TOTAL_CONNECTIONS
setDefaultMaxConnectionsPerHost
public void setDefaultMaxConnectionsPerHost(int maxHostConnections)
Sets the default maximum number of connections allowed for a given
host config.
maxHostConnections - The default maximum.
MAX_HOST_CONNECTIONS
setMaxConnectionsPerHost
public void setMaxConnectionsPerHost(HostConfiguration hostConfiguration,
int maxHostConnections)hostConfiguration - The host config to set the maximum for. UsemaxHostConnections - The maximum number of connections, > 0
MAX_HOST_CONNECTIONS
setMaxTotalConnections
public void setMaxTotalConnections(int maxTotalConnections)
Sets the maximum number of connections allowed.
maxTotalConnections - The maximum number of connections allowed.
MAX_TOTAL_CONNECTIONS
Copyright (c) 1999-2005 - Apache Software Foundation