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
-
Method Summary
Modifier and TypeMethodDescriptionbooleanmatching(io.micronaut.http.HttpRequest<?> httpRequest) Match the given request.
-
Method Details
-
matching
boolean matching(io.micronaut.http.HttpRequest<?> httpRequest) Match the given request.- Parameters:
httpRequest- The request- Returns:
- true if route matches this request
-