public interface Route
RouteBuilder.RouteBuilder, 
ResourceRoute| Modifier and Type | Field and Description | 
|---|---|
static java.util.List<MediaType> | 
DEFAULT_PRODUCES
The default media type produced by routes. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
default Route | 
acceptAll()
Deprecated. 
 
Use  
consumesAll() instead. | 
Route | 
body(Argument<?> argument)
The name of the argument to the route that is the request body. 
 | 
Route | 
body(java.lang.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  
MediaType references. | 
default java.util.List<MediaType> | 
getConsumes()
The media types able to produced by this route. 
 | 
default java.util.List<MediaType> | 
getProduces()
The media types able to produced by this route. 
 | 
Route | 
nest(java.lang.Runnable nested)
Defines routes nested within this route. 
 | 
Route | 
produces(MediaType... mediaType)
Applies the given accepted media type the route. 
 | 
Route | 
where(java.util.function.Predicate<HttpRequest<?>> condition)
Match this  
Route only if the given predicate is true. | 
static final java.util.List<MediaType> DEFAULT_PRODUCES
Route consumes(MediaType... mediaType)
mediaType - The media typeRoute produces(MediaType... mediaType)
mediaType - The media typeRoute consumesAll()
MediaType references.Route nest(java.lang.Runnable nested)
nested - The nested routesRoute where(java.util.function.Predicate<HttpRequest<?>> condition)
Route only if the given predicate is true.condition - The condition which accepts a HttpRequestRoute body(java.lang.String argument)
argument - The argumentRoute body(Argument<?> argument)
argument - The argumentdefault java.util.List<MediaType> getProduces()
MediaType that this route can producedefault java.util.List<MediaType> getConsumes()
MediaType that this route can produce@Deprecated default Route acceptAll()
consumesAll() instead.MediaType references.