public static enum HttpClient.ConnectionType extends Enum<HttpClient.ConnectionType>
| Enum Constant and Description |
|---|
HTTP
Plain HTTP connections
|
HTTPS
HTTPS connections
|
HTTPS_NO_VALIDATION
Not recommended for production use.
|
| Modifier and Type | Method and Description |
|---|---|
static HttpClient.ConnectionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpClient.ConnectionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpClient.ConnectionType HTTP
public static final HttpClient.ConnectionType HTTPS
public static final HttpClient.ConnectionType HTTPS_NO_VALIDATION
public static HttpClient.ConnectionType[] values()
for (HttpClient.ConnectionType c : HttpClient.ConnectionType.values()) System.out.println(c);
public static HttpClient.ConnectionType 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 nullCopyright © 2018. All rights reserved.