Package io.cui.tools.net
Class ParameterFilter
- java.lang.Object
-
- io.cui.tools.net.ParameterFilter
-
- All Implemented Interfaces:
Serializable
public class ParameterFilter extends Object implements Serializable
Defines a filter identifying which parameters are not to be included within url parameter handling. Therefore, it filters parameter prefixed with "javax.faces", depending onexcludeFacesParameterand additionally a given list of parameter names.- Author:
- Oliver Wolff
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParameterFilter(@NonNull List<String> excludes, boolean excludeFacesParameter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)@NonNull List<String>getExcludes()The list of string to be excluded from the parameter-list.inthashCode()booleanisExcluded(String value)StringtoString()
-
-
-
Constructor Detail
-
ParameterFilter
public ParameterFilter(@NonNull @NonNull List<String> excludes, boolean excludeFacesParameter)
-
-
Method Detail
-
isExcluded
public boolean isExcluded(String value)
- Parameters:
value- as key of view parameter. Must not be null- Returns:
- true if value belongs to excluded values
-
getExcludes
@NonNull public @NonNull List<String> getExcludes()
The list of string to be excluded from the parameter-list. Because the test utilizes toLowerCase() the members of the list must all be lowercase. Otherwise, they are not considered.
-
-