public static enum HTTPConstants.PROTOCOL extends java.lang.Enum<HTTPConstants.PROTOCOL>
Modifier and Type | Method | Description |
---|---|---|
static HTTPConstants.PROTOCOL |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static HTTPConstants.PROTOCOL[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HTTPConstants.PROTOCOL HTTP
public static final HTTPConstants.PROTOCOL HTTPS
public static HTTPConstants.PROTOCOL[] values()
for (HTTPConstants.PROTOCOL c : HTTPConstants.PROTOCOL.values()) System.out.println(c);
public static HTTPConstants.PROTOCOL valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null