Module io.inverno.mod.http.base
Package io.inverno.mod.http.base.router
Class QueryParametersRoute.ParameterMatcher
java.lang.Object
io.inverno.mod.http.base.router.QueryParametersRoute.ParameterMatcher
- Enclosing interface:
QueryParametersRoute<A>
A parameter matcher used to match a parameter against a list of static values or or a list of patterns.
A parameter is matched if any of the static values or patterns defined in the matcher are matching the value.
- Since:
- 1.12
- Author:
- Jeremy Kuhn
-
Constructor Summary
ConstructorDescriptionParameterMatcher
(Set<String> staticValues, Set<Pattern> patternValues) Creates a parameter matcher. -
Method Summary
-
Constructor Details
-
ParameterMatcher
Creates a parameter matcher.
- Parameters:
staticValues
- a list of static valuespatternValues
- a list of patterns
-
-
Method Details
-
getValues
Returns the static values matched by the matcher.
- Returns:
- a set of values
-
getPatterns
Returns the patterns matched by the matcher.
- Returns:
- a set of patterns
-
matches
Matches the specified parameter value.
- Parameters:
value
- a parameter value- Returns:
- true if any of the static values or patterns is matching the value, false otherwise
-
equals
-
hashCode
public int hashCode()
-