R
- The routepublic interface RouteInfo<R> extends AnnotationMetadataProvider
EMPTY
Modifier and Type | Method and Description |
---|---|
default HttpStatus |
findStatus(HttpStatus defaultStatus)
Finds predefined route http status or uses default.
|
default Argument<?> |
getBodyType() |
default List<MediaType> |
getConsumes()
The media types able to produced by this route.
|
Class<?> |
getDeclaringType() |
default List<MediaType> |
getProduces()
The media types able to produced by this route.
|
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, synthesizeDeclaredAnnotationsByType
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
ReturnType<? extends R> getReturnType()
default Argument<?> getBodyType()
Class<?> getDeclaringType()
default List<MediaType> getProduces()
MediaType
that this route can producedefault List<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 HttpStatus findStatus(HttpStatus defaultStatus)
defaultStatus
- The default statusdefault boolean isWebSocketRoute()