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_FOUND
URL not found.NOT_HTTP
No HTTP urlREDIRECT
A redirect occursSECURITY_LEVEL_ERROR
Security level errorSERVER_ERROR
Server error.SUCCESS
All rightTIMEOUT
Timeout (too long)UNAUTHORIZED
Unauthorized.
-
Constructor Summary
Constructors Modifier Constructor Description private
HttpCheck()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpUrlUtils.HttpCheck
valueOf(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
-
-