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 TypeMethodDescriptionio.micronaut.core.type.Argument<T> getType()default booleanisReadable(io.micronaut.core.type.Argument<T> type, @Nullable MediaType mediaType) Is the type readable.Methods inherited from interface MessageBodyReader
read, read
-
Method Details
-
getType
io.micronaut.core.type.Argument<T> 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
-