org.apache.commons.httpclient.params
public class HttpConnectionManagerParams extends HttpConnectionParams
Since: 3.0
Version: $Revision: 354155 $
| Field Summary | |
|---|---|
| static String | MAX_HOST_CONNECTIONS
Defines the maximum number of connections allowed per host configuration.
|
| static String | MAX_TOTAL_CONNECTIONS
Defines the maximum number of connections allowed overall. |
| Method Summary | |
|---|---|
| int | getDefaultMaxConnectionsPerHost()
Gets the default maximum number of connections allowed for a given
host config.
|
| int | getMaxConnectionsPerHost(HostConfiguration hostConfiguration)
Gets the maximum number of connections to be used for a particular host config. |
| int | getMaxTotalConnections()
Gets the maximum number of connections allowed.
|
| void | setDefaultMaxConnectionsPerHost(int maxHostConnections)
Sets the default maximum number of connections allowed for a given
host config.
|
| void | setMaxConnectionsPerHost(HostConfiguration hostConfiguration, int maxHostConnections)
Sets the maximum number of connections to be used for the given host config.
|
| void | setMaxTotalConnections(int maxTotalConnections)
Sets the maximum number of connections allowed.
|
This parameter expects a value of type {@link java.util.Map}. The value should map instances of {@link org.apache.commons.httpclient.HostConfiguration} to {@link Integer integers}. The default value can be specified using {@link org.apache.commons.httpclient.HostConfiguration#ANY_HOST_CONFIGURATION}.
This parameter expects a value of type {@link Integer}.
Returns: The default maximum.
See Also: MAX_HOST_CONNECTIONS
Parameters: hostConfiguration The host config.
Returns: The maximum number of connections to be used for the given host config.
See Also: MAX_HOST_CONNECTIONS
Returns: The maximum number of connections allowed.
See Also: MAX_TOTAL_CONNECTIONS
Parameters: maxHostConnections The default maximum.
See Also: MAX_HOST_CONNECTIONS
Parameters: hostConfiguration The host config to set the maximum for. Use
{@link HostConfiguration#ANY_HOST_CONFIGURATION} to configure the default value
per host. maxHostConnections The maximum number of connections, > 0
See Also: MAX_HOST_CONNECTIONS
Parameters: maxTotalConnections The maximum number of connections allowed.
See Also: MAX_TOTAL_CONNECTIONS