Package io.micronaut.web.router
Interface RequestMatcher
- All Known Subinterfaces:
ErrorRouteInfo<T,
,R> StatusRouteInfo<T,
,R> UriRouteInfo<T,
R>
- All Known Implementing Classes:
DefaultErrorRouteInfo
,DefaultRequestMatcher
,DefaultStatusRouteInfo
,DefaultUrlRouteInfo
public interface RequestMatcher
Route with a request predicate.
- Since:
- 4.0.0
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescriptionboolean
matching
(HttpRequest<?> httpRequest) Match the given request.
-
Method Details
-
matching
Match the given request.- Parameters:
httpRequest
- The request- Returns:
- true if route matches this request
-