Class HttpConnectionManagerParams
java.lang.Object
org.apache.commons.httpclient.params.DefaultHttpParams
org.apache.commons.httpclient.params.HttpConnectionParams
org.apache.commons.httpclient.params.HttpConnectionManagerParams
- All Implemented Interfaces:
Serializable,Cloneable,HttpParams
Deprecated.
Jakarta Commons HttpClient 3.x is deprecated in the Jenkins project.
It is not recommended to use it in any new code.
Instead, use HTTP client API plugins as a dependency in your code.
E.g.
Apache HttpComponents Client API 4.x Plugin or
Async HTTP Client Plugin.
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.- Since:
- 3.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.Defines the maximum number of connections allowed per host configuration.static final StringDeprecated.Defines the maximum number of connections allowed overall.Fields inherited from class org.apache.commons.httpclient.params.HttpConnectionParams
CONNECTION_TIMEOUT, SO_LINGER, SO_RCVBUF, SO_SNDBUF, SO_TIMEOUT, STALE_CONNECTION_CHECK, TCP_NODELAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintDeprecated.Gets the default maximum number of connections allowed for a given host config.intgetMaxConnectionsPerHost(HostConfiguration hostConfiguration) Deprecated.Gets the maximum number of connections to be used for a particular host config.intDeprecated.Gets the maximum number of connections allowed.voidsetDefaultMaxConnectionsPerHost(int maxHostConnections) Deprecated.Sets the default maximum number of connections allowed for a given host config.voidsetMaxConnectionsPerHost(HostConfiguration hostConfiguration, int maxHostConnections) Deprecated.Sets the maximum number of connections to be used for the given host config.voidsetMaxTotalConnections(int maxTotalConnections) Deprecated.Sets the maximum number of connections allowed.Methods inherited from class org.apache.commons.httpclient.params.HttpConnectionParams
getConnectionTimeout, getLinger, getReceiveBufferSize, getSendBufferSize, getSoTimeout, getTcpNoDelay, isStaleCheckingEnabled, setConnectionTimeout, setLinger, setReceiveBufferSize, setSendBufferSize, setSoTimeout, setStaleCheckingEnabled, setTcpNoDelayMethods inherited from class 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
-
Field Details
-
MAX_HOST_CONNECTIONS
Deprecated.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
Map. The value should map instances ofHostConfigurationtointegers. The default value can be specified usingHostConfiguration.ANY_HOST_CONFIGURATION.- See Also:
-
MAX_TOTAL_CONNECTIONS
Deprecated.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.- See Also:
-
-
Constructor Details
-
HttpConnectionManagerParams
public HttpConnectionManagerParams()Deprecated.
-
-
Method Details
-
setDefaultMaxConnectionsPerHost
public void setDefaultMaxConnectionsPerHost(int maxHostConnections) Deprecated.Sets the default maximum number of connections allowed for a given host config.- Parameters:
maxHostConnections- The default maximum.- See Also:
-
setMaxConnectionsPerHost
Deprecated.Sets the maximum number of connections to be used for the given host config.- Parameters:
hostConfiguration- The host config to set the maximum for. UseHostConfiguration.ANY_HOST_CONFIGURATIONto configure the default value per host.maxHostConnections- The maximum number of connections,> 0- See Also:
-
getDefaultMaxConnectionsPerHost
public int getDefaultMaxConnectionsPerHost()Deprecated.Gets the default maximum number of connections allowed for a given host config.- Returns:
- The default maximum.
- See Also:
-
getMaxConnectionsPerHost
Deprecated.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.- Parameters:
hostConfiguration- The host config.- Returns:
- The maximum number of connections to be used for the given host config.
- See Also:
-
setMaxTotalConnections
public void setMaxTotalConnections(int maxTotalConnections) Deprecated.Sets the maximum number of connections allowed.- Parameters:
maxTotalConnections- The maximum number of connections allowed.- See Also:
-
getMaxTotalConnections
public int getMaxTotalConnections()Deprecated.Gets the maximum number of connections allowed.- Returns:
- The maximum number of connections allowed.
- See Also:
-