public interface Route
RouteBuilder.RouteBuilder, 
ResourceRoute| Modifier and Type | Field and Description | 
|---|---|
| static List<MediaType> | DEFAULT_PRODUCESThe default media type produced by routes. | 
| Modifier and Type | Method and Description | 
|---|---|
| Route | body(Argument<?> argument)The name of the argument to the route that is the request body. | 
| Route | body(String argument)The name of the argument to the route that is the request body. | 
| Route | consumes(MediaType... mediaType)Applies the given accepted media type the route. | 
| Route | consumesAll()Accept all  MediaTypereferences. | 
| default List<MediaType> | getConsumes()The media types able to produced by this route. | 
| default List<MediaType> | getProduces()The media types able to produced by this route. | 
| Route | nest(Runnable nested)Defines routes nested within this route. | 
| Route | produces(MediaType... mediaType)Applies the given accepted media type the route. | 
| Route | where(Predicate<HttpRequest<?>> condition)Match this  Routeonly if the given predicate is true. | 
Route consumes(MediaType... mediaType)
mediaType - The media typeRoute produces(MediaType... mediaType)
mediaType - The media typeRoute consumesAll()
MediaType references.Route nest(Runnable nested)
nested - The nested routesRoute where(Predicate<HttpRequest<?>> condition)
Route only if the given predicate is true.condition - The condition which accepts a HttpRequestRoute body(String argument)
argument - The argumentRoute body(Argument<?> argument)
argument - The argumentdefault List<MediaType> getProduces()
MediaType that this route can produce