public static enum VirtualHost.Protocol extends Enum<VirtualHost.Protocol>
| Enum Constant and Description |
|---|
HTTP
HTTP protocol
|
HTTPS
HTTPS protocol
|
| Modifier and Type | Method and Description |
|---|---|
static VirtualHost.Protocol |
fromValue(String value)
Create a Protocol instance from a string representation.
|
String |
toString() |
String |
value()
Return the string representation of this instance.
|
static VirtualHost.Protocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VirtualHost.Protocol[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final VirtualHost.Protocol HTTP
public static final VirtualHost.Protocol HTTPS
public static VirtualHost.Protocol[] values()
for (VirtualHost.Protocol c : VirtualHost.Protocol.values())
System.out.println(c);
public static VirtualHost.Protocol 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 String toString()
toString in class Enum<VirtualHost.Protocol>public String value()
public static VirtualHost.Protocol fromValue(String value)
value - string representation