java.lang.Object
io.helidon.http.PathMatchers
Utility methods to create path matchers.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
Path matching result.static final record
Path matching result. -
Method Summary
Modifier and TypeMethodDescriptionstatic PathMatcher
any()
Path matcher matching any path.static PathMatcher
Create a path matcher from a path pattern.static PathMatcher
Exact match path matcher.static PathMatcher
Pattern match path matcher.static PathMatcher
Prefix 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
-