Enum Class FilterMethod

java.lang.Object
java.lang.Enum<FilterMethod>
com.giffing.bucket4j.spring.boot.starter.context.FilterMethod
All Implemented Interfaces:
Serializable, Comparable<FilterMethod>, Constable

public enum FilterMethod extends Enum<FilterMethod>
The filter method defines which type of should be used.
  • Enum Constant Details

    • SERVLET

      public static final FilterMethod SERVLET
      Servlet Request Filter
    • WEBFLUX

      public static final FilterMethod WEBFLUX
      Spring Boots 5 async WebFilter
    • GATEWAY

      public static final FilterMethod GATEWAY
      Spring Cloud Gateway GlobalFilter
    • JMS

      public static final FilterMethod JMS
      See GitHub - Extend FilterMehod enum for custom filters (like JMS) #216
  • Method Details

    • values

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