public enum HttpProtocol extends Enum<HttpProtocol>
Enum Constant and Description |
---|
HTTPS
Enum value https.
|
HTTPSHTTP
Enum value https,http.
|
Modifier and Type | Method and Description |
---|---|
static HttpProtocol |
fromString(String value)
Parses a serialized value to a HttpProtocol instance.
|
String |
toString() |
static HttpProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpProtocol HTTPSHTTP
public static final HttpProtocol HTTPS
public static HttpProtocol[] values()
for (HttpProtocol c : HttpProtocol.values()) System.out.println(c);
public static HttpProtocol 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 static HttpProtocol fromString(String value)
value
- the serialized value to parse.public String toString()
toString
in class Enum<HttpProtocol>
Copyright © 2019. All rights reserved.