Package io.micronaut.http.body
Interface TypedMessageBodyReader<T>
- Type Parameters:
T- The type
- All Superinterfaces:
MessageBodyReader<T>
- All Known Subinterfaces:
TypedMessageBodyHandler<T>
- All Known Implementing Classes:
StringBodyReader,TextPlainObjectBodyReader,WritableBodyWriter
A body reader
MessageBodyReader with a type argument.- Since:
- 4.6
-
Method Summary
Modifier and TypeMethodDescription@NonNull io.micronaut.core.type.Argument<T>getType()default booleanisReadable(io.micronaut.core.type.Argument<T> type, MediaType mediaType) Is the type readable.Methods inherited from interface io.micronaut.http.body.MessageBodyReader
read, read
-
Method Details
-
getType
- Returns:
- The body type.
-
isReadable
Description copied from interface:MessageBodyReaderIs the type readable.- Specified by:
isReadablein interfaceMessageBodyReader<T>- Parameters:
type- The typemediaType- The media type, can benull- Returns:
- True if is readable
-