Interface Route
- All Known Subinterfaces:
ErrorRoute, ResourceRoute, StatusRoute, UriRoute
public interface Route
Represents a Route definition constructed by a
RouteBuilder.- Since:
- 1.0
- Author:
- Graeme Rocher
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe default media type produced by routes. -
Method Summary
Modifier and TypeMethodDescriptionThe name of the argument to the route that is the request body.The name of the argument to the route that is the request body.Applies the given accepted media type the route.Accept allMediaTypereferences.The media types able to produced by this route.The media types able to produced by this route.Defines routes nested within this route.Applies the given accepted media type the route.where(Predicate<HttpRequest<?>> condition) Match thisRouteonly if the given predicate is true.
-
Field Details
-
DEFAULT_PRODUCES
-
-
Method Details
-
toRouteInfo
-
consumes
-
produces
-
consumesAll
-
nest
-
where
Match thisRouteonly if the given predicate is true.- Parameters:
condition- The condition which accepts aHttpRequest- Returns:
- This route
-
body
-
body
-
getProduces
-
getConsumes
-