Package com.deere.isg.worktracker.spring
Enum FilterOrder
- java.lang.Object
-
- java.lang.Enum<FilterOrder>
-
- com.deere.isg.worktracker.spring.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 theFilterOrder.SpringWorkFiltershould be first since it creates the work payload that gets passed to the subsequent filters.RequestBouncerFiltershould be second since it protects the applications from request overflow.ZombieFiltershould be third since it starts a background job to track for zombie threads.SpringWorkPostAuthFiltershould 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 forSpringWork.updateUserInformation(javax.servlet.http.HttpServletRequest)in order to use this filter.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FILTER_SECURITY_INTERCEPTORFLOOD_SENSOR_FILTERPRE_AUTH_FILTERUSER_POST_AUTH_FILTERWORK_FILTERZOMBIE_FILTER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetOrder()static FilterOrdervalueOf(String name)Returns the enum constant of this type with the specified name.static FilterOrder[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 nameNullPointerException- if the argument is null
-
getOrder
public int getOrder()
-
-