Module io.jooby
Package io.jooby

Enum Class RouterOption

All Implemented Interfaces:
Serializable, Comparable<RouterOption>, Constable

public enum RouterOption extends Enum<RouterOption>
Router matching options. Specify whenever ignore case and trailing slash. Options:
  • IGNORE_CASE: Indicates whenever routing algorithm does case-sensitive matching on incoming request path. Default is case sensitive.
  • IGNORE_TRAILING_SLASH: Indicates whenever a trailing slash is ignored on incoming request path.
  • NORMALIZE_SLASH: Normalize incoming request path by removing consecutive / (slashes).
  • RESET_HEADERS_ON_ERROR: Indicates whenever response headers are clear/reset in case of exception.
Since:
2.4.0
Author:
edgar
  • Enum Constant Details

    • IGNORE_CASE

      public static final RouterOption IGNORE_CASE
      Indicates whenever routing algorithm does case-sensitive matching on incoming request path. Default is case sensitive.
    • IGNORE_TRAILING_SLASH

      public static final RouterOption IGNORE_TRAILING_SLASH
      Indicates whenever a trailing slash is ignored on incoming request path.
    • NORMALIZE_SLASH

      public static final RouterOption NORMALIZE_SLASH
      Normalize incoming request path by removing multiple slash sequences.
    • RESET_HEADERS_ON_ERROR

      public static final RouterOption RESET_HEADERS_ON_ERROR
      Indicates whenever response headers are clear/reset in case of exception.
  • Method Details

    • values

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