Enum Class HttpClientParams
- All Implemented Interfaces:
Serializable,Comparable<HttpClientParams>,Constable
Contains some utility methods for dealing with configuration of the HttpComponents HttpClient.
To limit the impact of transitioning from Commons HttpClient to HttpComponents, certain legacy parameters (namely, those that map over directly) are enumerated in this class. There are methods here to help retrieve those config param values as well.
NOTE: The full list of supported parameters can be found in the source for this class.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescription<T> TgetValue()<T> TgetValueOrDefault(T defaultValue) static HttpClientParamsReturns the enum constant of this class with the specified name.static HttpClientParams[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
USE_EXPECT_CONTINUE
-
HTTP_CONTENT_CHARSET
-
COOKIE_POLICY
-
SO_TIMEOUT
-
TCP_NODELAY
-
SO_SNDBUF
-
SO_RCVBUF
-
SO_LINGER
-
CONNECTION_TIMEOUT
-
STALE_CONNECTION_CHECK
-
MAX_TOTAL_CONNECTIONS
-
CONNECTION_MANAGER_TIMEOUT
-
REJECT_RELATIVE_REDIRECT
-
MAX_REDIRECTS
-
ALLOW_CIRCULAR_REDIRECTS
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public <T> T getValue() -
getValueOrDefault
public <T> T getValueOrDefault(T defaultValue) -
getParamName
-
getParamValueClass
-