Package io.micronaut.http.uri
Interface UriMatcher
- All Known Subinterfaces:
UriRouteInfo<T,
R>
- All Known Implementing Classes:
DefaultUrlRouteInfo
,UriMatchTemplate
,UriTypeMatchTemplate
public interface UriMatcher
A URI matcher is capable of matching a URI and producing a UriMatchInfo
.
- Since:
- 1.0
- Author:
- Graeme Rocher
-
Method Summary
Modifier and TypeMethodDescriptionOptional<? extends UriMatchInfo>
Match the given URI string.default Optional<? extends UriMatchInfo>
Match the givenURI
object.
-
Method Details
-
match
Match the givenURI
object.- Parameters:
uri
- The URI- Returns:
- True if it matches
-
match
Match the given URI string.- Parameters:
uri
- The uRI- Returns:
- True if it matches
-