Package io.mangoo.enums
Enum Class Template
- All Implemented Interfaces:
Serializable,Comparable<Template>,Constable
Default HTML templates for standard HTTP responses
- Author:
- svenkbiak
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
DEFAULT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
adminPath
- Returns:
- The relative path of the admin template
-
badRequest
- Returns:
- The content of the default bad request template
-
badRequestPath
- Returns:
- The relative path of the bad request template
-
cachePath
- Returns:
- The relative path of the cache template
-
forbidden
- Returns:
- The content of the default forbidden template
-
forbiddenPath
- Returns:
- The relative path of the forbidden template
-
loggerPath
- Returns:
- The relative path of the cache template
-
twofactorPath
- Returns:
- The relative path of the cache template
-
loginPath
- Returns:
- The relative path of the login template
-
notFound
- Returns:
- The content of the default not found template
-
notFoundPath
- Returns:
- The relative path of the not found template
-
routesPath
- Returns:
- The relative path of the routes template
-
serverError
- Returns:
- The content of the default internal server error template
-
tooManyRequests
- Returns:
- The content of the default too many requests error template
-
serverErrorPath
- Returns:
- The relative path of the internal server error template
-
toolsPath
- Returns:
- The relative path of the tools template
-
unauthorized
- Returns:
- The content of the default unauthorized template
-
unauthorizedPath
- Returns:
- The relative path of the unauthorized template
-