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(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(Predicate<HttpRequest<?>> condition)
Match this
Route only if the given predicate is true. |
body, body, consumesAll, getConsumes, getProduces
ResourceRoute consumes(MediaType... mediaTypes)
ResourceRoute nest(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(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