public enum HTTP extends Enum<HTTP>
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isUrl(String url) |
static boolean |
urlHasCorsAllowed(String url) |
static byte[] |
urlToByteArray(String location) |
static HTTP |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HTTP[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static HTTP[] values()
for (HTTP c : HTTP.values()) System.out.println(c);
public static HTTP 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 static boolean isUrl(String url)
public static boolean urlHasCorsAllowed(String url)
public static byte[] urlToByteArray(String location) throws IOException
IOExceptionCopyright © 2019. All rights reserved.