Package io.micronaut.http.uri
Interface UriMatcher
-
- All Known Implementing Classes:
UriMatchTemplate
,UriTypeMatchTemplate
public interface UriMatcher
A URI matcher is capable of matching a URI and producing a
UriMatchInfo
.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.Optional<? extends UriMatchInfo>
match(java.lang.String uri)
Match the given URI string.default java.util.Optional<? extends UriMatchInfo>
match(java.net.URI uri)
Match the givenURI
object.
-
-
-
Method Detail
-
match
default java.util.Optional<? extends UriMatchInfo> match(java.net.URI uri)
Match the givenURI
object.- Parameters:
uri
- The URI- Returns:
- True if it matches
-
match
java.util.Optional<? extends UriMatchInfo> match(java.lang.String uri)
Match the given URI string.- Parameters:
uri
- The uRI- Returns:
- True if it matches
-
-