public enum ProxyError extends Enum<ProxyError>
getHtml(String) method to return formatted HTML code to return to the
client.| Enum Constant and Description |
|---|
CONN_FAILURE |
DNS_NOT_FOUND |
GENERIC |
MALFORMED_URI |
NET_INTERRUPT |
NET_RESET |
NET_TIMEOUT |
| Modifier and Type | Method and Description |
|---|---|
String |
getHtml(String url)
Returns an HTML message for this error that can be sent to the client.
|
static ProxyError |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProxyError[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProxyError CONN_FAILURE
public static final ProxyError DNS_NOT_FOUND
public static final ProxyError GENERIC
public static final ProxyError MALFORMED_URI
public static final ProxyError NET_INTERRUPT
public static final ProxyError NET_RESET
public static final ProxyError NET_TIMEOUT
public static ProxyError[] values()
for (ProxyError c : ProxyError.values()) System.out.println(c);
public static ProxyError 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 nullCopyright © 2015. All Rights Reserved.