java.lang.Object
io.helidon.http.PathMatchers
Utility methods to create path matchers.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordPath matching result.static final recordPath matching result. -
Method Summary
Modifier and TypeMethodDescriptionstatic PathMatcherany()Path matcher matching any path.static PathMatcherCreate a path matcher from a path pattern.static PathMatcherExact match path matcher.static PathMatcherPattern match path matcher.static PathMatcherPrefix match path matcher.
-
Method Details
-
exact
Exact match path matcher.- Parameters:
pathToMatch- the path must match exactly the provided path- Returns:
- exact match path matcher
-
prefix
Prefix match path matcher.- Parameters:
pathToMatch- the path must be prefixed by the provided path- Returns:
- prefix match path matcher
-
pattern
Pattern match path matcher.- Parameters:
pattern- pattern that may contain parameters and allowed patterns- Returns:
- pattern match path matcher
-
create
Create a path matcher from a path pattern. This method will analyze the pattern and return appropriate path matcher.- Parameters:
pathPattern- path pattern to match agains- Returns:
- path matcher
-
any
Path matcher matching any path.- Returns:
- matcher matching any path
-