R - The routepublic interface RouteInfo<R>
extends io.micronaut.core.annotation.AnnotationMetadataProvider
| Modifier and Type | Method and Description |
|---|---|
default io.micronaut.http.HttpStatus |
findStatus(io.micronaut.http.HttpStatus defaultStatus)
Finds predefined route http status or uses default.
|
default io.micronaut.core.type.Argument<?> |
getBodyType() |
default java.util.List<io.micronaut.http.MediaType> |
getConsumes()
The media types able to produced by this route.
|
java.lang.Class<?> |
getDeclaringType() |
default java.util.List<io.micronaut.http.MediaType> |
getProduces()
The media types able to produced by this route.
|
io.micronaut.core.type.ReturnType<? extends R> |
getReturnType() |
default boolean |
isAsync() |
default boolean |
isAsyncOrReactive() |
default boolean |
isCompletable() |
default boolean |
isErrorRoute() |
default boolean |
isReactive() |
default boolean |
isSingleResult() |
default boolean |
isSpecifiedSingle() |
default boolean |
isSuspended() |
default boolean |
isVoid() |
default boolean |
isWebSocketRoute()
Checks if route is for web socket.
|
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeio.micronaut.core.type.ReturnType<? extends R> getReturnType()
default io.micronaut.core.type.Argument<?> getBodyType()
java.lang.Class<?> getDeclaringType()
default java.util.List<io.micronaut.http.MediaType> getProduces()
MediaType that this route can producedefault java.util.List<io.micronaut.http.MediaType> getConsumes()
MediaType that this route can producedefault boolean isSuspended()
default boolean isReactive()
default boolean isSingleResult()
default boolean isSpecifiedSingle()
default boolean isCompletable()
default boolean isAsync()
default boolean isAsyncOrReactive()
default boolean isVoid()
default boolean isErrorRoute()
@NonNull default io.micronaut.http.HttpStatus findStatus(io.micronaut.http.HttpStatus defaultStatus)
defaultStatus - The default statusdefault boolean isWebSocketRoute()