public interface Route
RouteBuilder.RouteBuilder, 
ResourceRoute| Modifier and Type | Field and Description | 
|---|---|
static List<MediaType> | 
DEFAULT_PRODUCES
The default media type produced by routes. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Route | 
acceptAll()
Accept all  
MediaType references. | 
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. 
 | 
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  
Route only if the given predicate is true. | 
Route consumes(MediaType... mediaType)
mediaType - The media typeRoute produces(MediaType... mediaType)
mediaType - The media typeRoute acceptAll()
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