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(io.micronaut.http.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.
|
io.micronaut.http.HttpMethod |
getHttpMethod() |
default java.lang.String |
getHttpMethodName() |
java.lang.Integer |
getPort() |
io.micronaut.http.uri.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(io.micronaut.http.MediaType... mediaType)
Applies the given accepted media type the route.
|
UriRoute |
where(java.util.function.Predicate<io.micronaut.http.HttpRequest<?>> condition)
Match this
Route only if the given predicate is true. |
body, getConsumes, getProducesUriRoute nest(java.lang.Runnable nested)
io.micronaut.http.HttpMethod getHttpMethod()
io.micronaut.http.uri.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 io.micronaut.http.uri.UriMatcheruri - The URI The URIOptional of RouteMatchjava.util.Optional<UriRouteMatch> match(java.lang.String uri)
RouteMatch if a match is found.match in interface io.micronaut.http.uri.UriMatcheruri - The URI The URIOptional of RouteMatchUriRoute consumes(io.micronaut.http.MediaType... mediaType)
RouteUriRoute produces(io.micronaut.http.MediaType... mediaType)
RouteUriRoute consumesAll()
RouteMediaType references.consumesAll in interface RouteUriRoute where(java.util.function.Predicate<io.micronaut.http.HttpRequest<?>> condition)
RouteRoute only if the given predicate is true.UriRoute 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.