public interface UriRoute extends Route, UriMatcher, Comparable<UriRoute>
DEFAULT_PRODUCES| Modifier and Type | Method and Description | 
|---|---|
UriRoute | 
acceptAll()
Accept all  
MediaType references. | 
UriRoute | 
body(String argument)
The name of the argument to the route that is the request body. 
 | 
UriRoute | 
consumes(MediaType... mediaType)
Applies the given accepted media type the route. 
 | 
HttpMethod | 
getHttpMethod()  | 
UriMatchTemplate | 
getUriMatchTemplate()  | 
Optional<UriRouteMatch> | 
match(String uri)
Match this route within the given URI and produce a  
RouteMatch if a match is found. | 
default Optional<UriRouteMatch> | 
match(URI uri)
Match this route within the given URI and produce a  
RouteMatch if a match is found. | 
UriRoute | 
nest(Runnable nested)
Defines routes nested within this route. 
 | 
UriRoute | 
produces(MediaType... mediaType)
Applies the given accepted media type the route. 
 | 
UriRoute | 
where(Predicate<HttpRequest<?>> condition)
Match this  
Route only if the given predicate is true. | 
body, getConsumes, getProducescompareToHttpMethod getHttpMethod()
UriMatchTemplate getUriMatchTemplate()
UriMatchTemplate used to match URIsdefault Optional<UriRouteMatch> match(URI uri)
RouteMatch if a match is found.match in interface UriMatcheruri - The URI The URIOptional of RouteMatchOptional<UriRouteMatch> match(String uri)
RouteMatch if a match is found.match in interface UriMatcheruri - The URI The URIOptional of RouteMatchUriRoute consumes(MediaType... mediaType)
RouteUriRoute produces(MediaType... mediaType)
RouteUriRoute acceptAll()
RouteMediaType references.UriRoute where(Predicate<HttpRequest<?>> condition)
RouteRoute only if the given predicate is true.where in interface Routecondition - The condition which accepts a HttpRequest