DEFAULT_PRODUCES
Modifier and Type | Method and Description |
---|---|
ResourceRoute |
consumes(MediaType... mediaTypes)
Accept the given media type.
|
ResourceRoute |
exclude(HttpMethod... methods)
Exclude a particular HTTP method from this resource route.
|
ResourceRoute |
nest(java.lang.Runnable nested)
Nest more routes within this
ResourceRoute . |
ResourceRoute |
produces(MediaType... mediaType)
Applies the given accepted media type the route.
|
ResourceRoute |
readOnly(boolean readOnly)
Whether the route is read-only.
|
ResourceRoute |
where(java.util.function.Predicate<HttpRequest<?>> condition)
Match this
Route only if the given predicate is true. |
acceptAll, body, body, consumesAll, getConsumes, getProduces
ResourceRoute consumes(MediaType... mediaTypes)
ResourceRoute nest(java.lang.Runnable nested)
ResourceRoute
.ResourceRoute readOnly(boolean readOnly)
readOnly
- True if this resource route should be read-onlyResourceRoute
ResourceRoute exclude(HttpMethod... methods)
methods
- The methods to excludeResourceRoute where(java.util.function.Predicate<HttpRequest<?>> condition)
Route
Route
only if the given predicate is true.where
in interface Route
condition
- The condition which accepts a HttpRequest
ResourceRoute produces(MediaType... mediaType)
Route