Package de.gematik.utils.request
Enum ApiRequester.StatusCodes
- java.lang.Object
-
- java.lang.Enum<ApiRequester.StatusCodes>
-
- de.gematik.utils.request.ApiRequester.StatusCodes
-
- All Implemented Interfaces:
Serializable,Comparable<ApiRequester.StatusCodes>
- Enclosing class:
- ApiRequester
public static enum ApiRequester.StatusCodes extends Enum<ApiRequester.StatusCodes>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLCLIENT_ERRORINFOREDIRECTIONSERVER_ERRORSUCCESS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisValid(int code)static ApiRequester.StatusCodesvalueOf(String name)Returns the enum constant of this type with the specified name.static ApiRequester.StatusCodes[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INFO
public static final ApiRequester.StatusCodes INFO
-
SUCCESS
public static final ApiRequester.StatusCodes SUCCESS
-
REDIRECTION
public static final ApiRequester.StatusCodes REDIRECTION
-
CLIENT_ERROR
public static final ApiRequester.StatusCodes CLIENT_ERROR
-
SERVER_ERROR
public static final ApiRequester.StatusCodes SERVER_ERROR
-
ALL
public static final ApiRequester.StatusCodes ALL
-
-
Method Detail
-
values
public static ApiRequester.StatusCodes[] 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 (ApiRequester.StatusCodes c : ApiRequester.StatusCodes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ApiRequester.StatusCodes 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
-
isValid
public boolean isValid(int code)
-
-