Package com.authlete.common.api
Enum AuthleteApiBasicImpl.NotFoundHandling
- java.lang.Object
-
- java.lang.Enum<AuthleteApiBasicImpl.NotFoundHandling>
-
- com.authlete.common.api.AuthleteApiBasicImpl.NotFoundHandling
-
- All Implemented Interfaces:
Serializable
,Comparable<AuthleteApiBasicImpl.NotFoundHandling>
- Enclosing class:
- AuthleteApiBasicImpl
protected static enum AuthleteApiBasicImpl.NotFoundHandling extends Enum<AuthleteApiBasicImpl.NotFoundHandling>
Strategy for handling 404 responses
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PARSE_AS_RESPONSE
Parse 404 response body as business responseRETURN_NULL
Return null for 404 responsesRETURN_SUCCESS_RESPONSE
Return default success response for 404 (useful for delete operations)THROW_EXCEPTION
Throw exception for 404 (default behavior)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AuthleteApiBasicImpl.NotFoundHandling
valueOf(String name)
Returns the enum constant of this type with the specified name.static AuthleteApiBasicImpl.NotFoundHandling[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
THROW_EXCEPTION
public static final AuthleteApiBasicImpl.NotFoundHandling THROW_EXCEPTION
Throw exception for 404 (default behavior)
-
RETURN_NULL
public static final AuthleteApiBasicImpl.NotFoundHandling RETURN_NULL
Return null for 404 responses
-
PARSE_AS_RESPONSE
public static final AuthleteApiBasicImpl.NotFoundHandling PARSE_AS_RESPONSE
Parse 404 response body as business response
-
RETURN_SUCCESS_RESPONSE
public static final AuthleteApiBasicImpl.NotFoundHandling RETURN_SUCCESS_RESPONSE
Return default success response for 404 (useful for delete operations)
-
-
Method Detail
-
values
public static AuthleteApiBasicImpl.NotFoundHandling[] 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 (AuthleteApiBasicImpl.NotFoundHandling c : AuthleteApiBasicImpl.NotFoundHandling.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AuthleteApiBasicImpl.NotFoundHandling 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
-
-