public enum RequestProtocol extends Enum<RequestProtocol>
| Enum Constant and Description |
|---|
HTTP
The HTTP.
|
HTTPS
The HTTPS.
|
PING
The PING (ICMP).
|
SSH
The SSH.
|
TCP
The TCP.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
static RequestProtocol |
valueOf(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 RequestProtocol[] values()
for (RequestProtocol c : RequestProtocol.values()) System.out.println(c);
public static RequestProtocol 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<RequestProtocol>Copyright © 2015 eBay. All rights reserved.