Modifier and Type | Method | Description |
---|---|---|
static boolean |
isUrl(java.lang.String url) |
|
static boolean |
urlHasCorsAllowed(java.lang.String url) |
|
static byte[] |
urlToByteArray(java.lang.String location) |
|
static HTTP |
valueOf(java.lang.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(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 static boolean isUrl(java.lang.String url)
public static boolean urlHasCorsAllowed(java.lang.String url)
public static byte[] urlToByteArray(java.lang.String location) throws java.io.IOException
java.io.IOException
Copyright © 2018. All rights reserved.