Package io.micronaut.http.body
Interface TypedMessageBodyWriter<T>
- Type Parameters:
T- The type
- All Superinterfaces:
MessageBodyWriter<T>
- All Known Subinterfaces:
TypedMessageBodyHandler<T>
- All Known Implementing Classes:
CharSequenceBodyWriter,WritableBodyWriter
A body writer
MessageBodyWriter with a type argument.- Since:
- 4.6
-
Method Summary
Modifier and TypeMethodDescription@NonNull io.micronaut.core.type.Argument<T>getType()default booleanisWriteable(io.micronaut.core.type.Argument<T> type, MediaType mediaType) Is the type writeable.Methods inherited from interface io.micronaut.http.body.MessageBodyWriter
createSpecific, isBlocking, writeTo, writeTo
-
Method Details
-
getType
- Returns:
- The body type.
-
isWriteable
Description copied from interface:MessageBodyWriterIs the type writeable.- Specified by:
isWriteablein interfaceMessageBodyWriter<T>- Parameters:
type- The typemediaType- The media type, can benull- Returns:
- True if is writable
-