Enum Class DispatcherType

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

public enum DispatcherType extends Enum<DispatcherType>
The DispatcherType API.
Author:
Manfred Riem ([email protected])
  • Enum Constant Details

    • FORWARD

      public static final DispatcherType FORWARD
      The type for forward dispatches.
    • INCLUDE

      public static final DispatcherType INCLUDE
      The type for include dispatches.
    • REQUEST

      public static final DispatcherType REQUEST
      The type for request dispatches.
    • ASYNC

      public static final DispatcherType ASYNC
      The type for async dispatches.
    • ERROR

      public static final DispatcherType ERROR
      The type for error dispatches.
  • Method Details

    • values

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