Enum Class Template

java.lang.Object
java.lang.Enum<Template>
io.mangoo.enums.Template
All Implemented Interfaces:
Serializable, Comparable<Template>, Constable

public enum Template extends Enum<Template>
Default HTML templates for standard HTTP responses
Author:
svenkbiak
  • Enum Constant Details

    • DEFAULT

      public static final Template DEFAULT
  • Method Details

    • values

      public static Template[] 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

      public static Template valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • adminPath

      public String adminPath()
      Returns:
      The relative path of the admin template
    • badRequest

      public String badRequest()
      Returns:
      The content of the default bad request template
    • badRequestPath

      public String badRequestPath()
      Returns:
      The relative path of the bad request template
    • cachePath

      public String cachePath()
      Returns:
      The relative path of the cache template
    • forbidden

      public String forbidden()
      Returns:
      The content of the default forbidden template
    • forbiddenPath

      public String forbiddenPath()
      Returns:
      The relative path of the forbidden template
    • loggerPath

      public String loggerPath()
      Returns:
      The relative path of the cache template
    • twofactorPath

      public String twofactorPath()
      Returns:
      The relative path of the cache template
    • loginPath

      public String loginPath()
      Returns:
      The relative path of the login template
    • notFound

      public String notFound()
      Returns:
      The content of the default not found template
    • notFoundPath

      public String notFoundPath()
      Returns:
      The relative path of the not found template
    • routesPath

      public String routesPath()
      Returns:
      The relative path of the routes template
    • serverError

      public String serverError()
      Returns:
      The content of the default internal server error template
    • tooManyRequests

      public String tooManyRequests()
      Returns:
      The content of the default too many requests error template
    • serverErrorPath

      public String serverErrorPath()
      Returns:
      The relative path of the internal server error template
    • toolsPath

      public String toolsPath()
      Returns:
      The relative path of the tools template
    • unauthorized

      public String unauthorized()
      Returns:
      The content of the default unauthorized template
    • unauthorizedPath

      public String unauthorizedPath()
      Returns:
      The relative path of the unauthorized template