Package io.micronaut.http.body
Interface RawMessageBodyHandler<T>
- Type Parameters:
T- The raw message type
- All Superinterfaces:
ChunkedMessageBodyReader<T>,MessageBodyHandler<T>,MessageBodyReader<T>,MessageBodyWriter<T>
- All Known Implementing Classes:
ByteBufRawMessageBodyHandler,NettyWritableBodyWriter,WritableBodyWriter
@Internal
public interface RawMessageBodyHandler<T>
extends MessageBodyHandler<T>, ChunkedMessageBodyReader<T>
A body handler that is responsible for "raw" writing/reading, i.e. without a format like JSON.
These handlers do not care about the media type, they assume the user is passing in pre-formatted
data.
-
Method Summary
Modifier and TypeMethodDescription@NonNull Collection<? extends Class<?>>getTypes()Supported types of this raw body handler.Methods inherited from interface io.micronaut.http.body.ChunkedMessageBodyReader
readChunkedMethods inherited from interface io.micronaut.http.body.MessageBodyReader
isReadable, read, readMethods inherited from interface io.micronaut.http.body.MessageBodyWriter
createSpecific, isBlocking, isWriteable, writeTo, writeTo
-
Method Details
-
getTypes
Supported types of this raw body handler. Exact match is used for reading. For writing, the match is covariant. For example, if this returns[String, CharSequence], then this raw handler will be used for reading types declared as exactlyStringorCharSequence, and will additionally be used for writing (but not reading) subtypes (e.g.StringBuilder).- Returns:
- The supported types
-