Enum Class MappingMatch

java.lang.Object
java.lang.Enum<MappingMatch>
jakarta.servlet.http.MappingMatch
All Implemented Interfaces:
Serializable, Comparable<MappingMatch>, Constable

public enum MappingMatch extends Enum<MappingMatch>

Enumeration of Servlet mapping types.

Since:
Servlet 4.0
  • Nested Class Summary Link icon

    Nested classes/interfaces inherited from class java.lang.Enum Link icon

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary Link icon

    Enum Constants
    Enum Constant
    Description
    This is used when the mapping was achieved with an exact match to the application's context root.
    This is used when the mapping was achieved with an exact match to the default servlet of the application, the '/' character.
    This is used when the mapping was achieved with an exact match to the incoming request.
    This is used when the mapping was achieved using an extension, such as "*.xhtml".
    This is used when the mapping was achieved using a path, such as "/faces/*".
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    static MappingMatch[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object Link icon

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details Link icon

    • CONTEXT_ROOT Link icon

      public static final MappingMatch CONTEXT_ROOT

      This is used when the mapping was achieved with an exact match to the application's context root.

    • DEFAULT Link icon

      public static final MappingMatch DEFAULT

      This is used when the mapping was achieved with an exact match to the default servlet of the application, the '/' character.

    • EXACT Link icon

      public static final MappingMatch EXACT

      This is used when the mapping was achieved with an exact match to the incoming request.

    • EXTENSION Link icon

      public static final MappingMatch EXTENSION

      This is used when the mapping was achieved using an extension, such as "*.xhtml".

    • PATH Link icon

      public static final MappingMatch PATH

      This is used when the mapping was achieved using a path, such as "/faces/*".

  • Method Details Link icon

    • values Link icon

      public static MappingMatch[] 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 Link icon

      public static MappingMatch 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