public enum HttpClientParams extends Enum<HttpClientParams>
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.
Modifier and Type | Method and Description |
---|---|
String |
getParamName() |
Class |
getParamValueClass() |
<T> T |
getValue() |
<T> T |
getValueOrDefault(T defaultValue) |
static HttpClientParams |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpClientParams[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpClientParams USE_EXPECT_CONTINUE
public static final HttpClientParams HTTP_CONTENT_CHARSET
public static final HttpClientParams COOKIE_POLICY
public static final HttpClientParams SO_TIMEOUT
public static final HttpClientParams TCP_NODELAY
public static final HttpClientParams SO_SNDBUF
public static final HttpClientParams SO_RCVBUF
public static final HttpClientParams SO_LINGER
public static final HttpClientParams CONNECTION_TIMEOUT
public static final HttpClientParams STALE_CONNECTION_CHECK
public static final HttpClientParams MAX_TOTAL_CONNECTIONS
public static final HttpClientParams CONNECTION_MANAGER_TIMEOUT
public static final HttpClientParams REJECT_RELATIVE_REDIRECT
public static final HttpClientParams MAX_REDIRECTS
public static final HttpClientParams ALLOW_CIRCULAR_REDIRECTS
public static HttpClientParams[] values()
for (HttpClientParams c : HttpClientParams.values()) System.out.println(c);
public static HttpClientParams valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic <T> T getValue()
public <T> T getValueOrDefault(T defaultValue)
public String getParamName()
public Class getParamValueClass()
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.