Enum FilterOrder

  • All Implemented Interfaces:
    Serializable, Comparable<FilterOrder>

    public enum FilterOrder
    extends Enum<FilterOrder>
    Filter order matters. If you are defining your own filter beans, you should follow the order defined by the FilterOrder.

    SpringWorkFilter should be first since it creates the work payload that gets passed to the subsequent filters. RequestBouncerFilter should be second since it protects the applications from request overflow. ZombieFilter should be third since it starts a background job to track for zombie threads. SpringWorkPostAuthFilter should be fourth since it updates the work metadata for the known user. This filter is optional if you do not have a user authentication service for your application. Otherwise, you need to provide the implementation for SpringWork.updateUserInformation(javax.servlet.http.HttpServletRequest) in order to use this filter.

    • Enum Constant Detail

      • WORK_FILTER

        public static final FilterOrder WORK_FILTER
      • FLOOD_SENSOR_FILTER

        public static final FilterOrder FLOOD_SENSOR_FILTER
      • ZOMBIE_FILTER

        public static final FilterOrder ZOMBIE_FILTER
      • PRE_AUTH_FILTER

        public static final FilterOrder PRE_AUTH_FILTER
      • USER_POST_AUTH_FILTER

        public static final FilterOrder USER_POST_AUTH_FILTER
      • FILTER_SECURITY_INTERCEPTOR

        public static final FilterOrder FILTER_SECURITY_INTERCEPTOR
    • Method Detail

      • values

        public static FilterOrder[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (FilterOrder c : FilterOrder.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FilterOrder valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null
      • getOrder

        public int getOrder()