public interface UriRoute extends Route, UriMatcher, java.lang.Comparable<UriRoute>
Route that matches a URI.DEFAULT_PRODUCES| Modifier and Type | Method and Description |
|---|---|
UriRoute |
body(java.lang.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.
|
UriRoute |
consumesAll()
Accept all
MediaType references. |
UriRoute |
exposedPort(int port)
The exposed port that the route applies to.
|
HttpMethod |
getHttpMethod() |
default java.lang.String |
getHttpMethodName() |
java.lang.Integer |
getPort() |
UriMatchTemplate |
getUriMatchTemplate() |
java.util.Optional<UriRouteMatch> |
match(java.lang.String uri)
Match this route within the given URI and produce a
RouteMatch if a match is found. |
default java.util.Optional<UriRouteMatch> |
match(java.net.URI uri)
Match this route within the given URI and produce a
RouteMatch if a match is found. |
UriRoute |
nest(java.lang.Runnable nested)
Defines routes nested within this route.
|
UriRoute |
produces(MediaType... mediaType)
Applies the given accepted media type the route.
|
UriRoute |
where(java.util.function.Predicate<HttpRequest<?>> condition)
Match this
Route only if the given predicate is true. |
acceptAll, body, getConsumes, getProducesUriRoute nest(java.lang.Runnable nested)
HttpMethod getHttpMethod()
UriMatchTemplate getUriMatchTemplate()
UriMatchTemplate used to match URIsdefault java.util.Optional<UriRouteMatch> match(java.net.URI uri)
RouteMatch if a match is found.match in interface UriMatcheruri - The URI The URIOptional of RouteMatchjava.util.Optional<UriRouteMatch> match(java.lang.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 consumesAll()
RouteMediaType references.consumesAll in interface RouteUriRoute where(java.util.function.Predicate<HttpRequest<?>> condition)
RouteRoute only if the given predicate is true.where in interface Routecondition - The condition which accepts a HttpRequestUriRoute body(java.lang.String argument)
RouteUriRoute exposedPort(int port)
port - The port@Nullable java.lang.Integer getPort()
default java.lang.String getHttpMethodName()
getHttpMethod() value for standard http methods.