public enum RequestProtocol extends java.lang.Enum<RequestProtocol>
Enum Constant and Description |
---|
HTTP
The HTTP.
|
HTTPS
The HTTPS.
|
PING
The PING (ICMP).
|
SSH
The SSH.
|
TCP
The TCP.
|
UDP
The UDP.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
static RequestProtocol |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RequestProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RequestProtocol HTTP
public static final RequestProtocol HTTPS
public static final RequestProtocol SSH
public static final RequestProtocol PING
public static final RequestProtocol TCP
public static final RequestProtocol UDP
public static RequestProtocol[] values()
for (RequestProtocol c : RequestProtocol.values()) System.out.println(c);
public static RequestProtocol 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 nullpublic java.lang.String toString()
toString
in class java.lang.Enum<RequestProtocol>