Package io.micronaut.web.router
Interface ResourceRoute
- All Superinterfaces:
- Route
A resource route is a composite route to a REST endpoint.
- Since:
- 1.0
- Author:
- Graeme Rocher
- 
Field SummaryFields inherited from interface io.micronaut.web.router.RouteDEFAULT_PRODUCES
- 
Method SummaryModifier and TypeMethodDescriptionAccept the given media type.exclude(HttpMethod... methods) Exclude a particular HTTP method from this resource route.Nest more routes within thisResourceRoute.Applies the given accepted media type the route.readOnly(boolean readOnly) Whether the route is read-only.where(Predicate<HttpRequest<?>> condition) Match thisRouteonly if the given predicate is true.Methods inherited from interface io.micronaut.web.router.Routebody, body, consumesAll, getConsumes, getProduces, toRouteInfo
- 
Method Details- 
consumesAccept the given media type.
- 
nestNest more routes within thisResourceRoute.
- 
readOnlyWhether the route is read-only.- Parameters:
- readOnly- True if this resource route should be read-only
- Returns:
- A new ResourceRoute
 
- 
excludeExclude a particular HTTP method from this resource route.- Parameters:
- methods- The methods to exclude
- Returns:
- The resource route
 
- 
whereDescription copied from interface:RouteMatch thisRouteonly if the given predicate is true.- Specified by:
- wherein interface- Route
- Parameters:
- condition- The condition which accepts a- HttpRequest
- Returns:
- This route
 
- 
producesDescription copied from interface:RouteApplies the given accepted media type the route.
 
-