Package org.ametys.core.util
Enum HttpUrlUtils.HttpCheck
- java.lang.Object
-
- java.lang.Enum<HttpUrlUtils.HttpCheck>
-
- org.ametys.core.util.HttpUrlUtils.HttpCheck
-
- All Implemented Interfaces:
Serializable,Comparable<HttpUrlUtils.HttpCheck>
- Enclosing class:
- HttpUrlUtils
public static enum HttpUrlUtils.HttpCheck extends Enum<HttpUrlUtils.HttpCheck>
The status of HTTP check
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NOT_FOUNDURL not found.NOT_HTTPNo HTTP urlREDIRECTA redirect occursSECURITY_LEVEL_ERRORSecurity level errorSERVER_ERRORServer error.SUCCESSAll rightTIMEOUTTimeout (too long)UNAUTHORIZEDUnauthorized.
-
Constructor Summary
Constructors Modifier Constructor Description privateHttpCheck()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpUrlUtils.HttpCheckvalueOf(String name)Returns the enum constant of this type with the specified name.static HttpUrlUtils.HttpCheck[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final HttpUrlUtils.HttpCheck SUCCESS
All right
-
SERVER_ERROR
public static final HttpUrlUtils.HttpCheck SERVER_ERROR
Server error.
-
NOT_FOUND
public static final HttpUrlUtils.HttpCheck NOT_FOUND
URL not found.
-
UNAUTHORIZED
public static final HttpUrlUtils.HttpCheck UNAUTHORIZED
Unauthorized.
-
TIMEOUT
public static final HttpUrlUtils.HttpCheck TIMEOUT
Timeout (too long)
-
REDIRECT
public static final HttpUrlUtils.HttpCheck REDIRECT
A redirect occurs
-
SECURITY_LEVEL_ERROR
public static final HttpUrlUtils.HttpCheck SECURITY_LEVEL_ERROR
Security level error
-
NOT_HTTP
public static final HttpUrlUtils.HttpCheck NOT_HTTP
No HTTP url
-
-
Constructor Detail
-
HttpCheck
private HttpCheck()
-
-
Method Detail
-
values
public static HttpUrlUtils.HttpCheck[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HttpUrlUtils.HttpCheck c : HttpUrlUtils.HttpCheck.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpUrlUtils.HttpCheck valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-