Package io.micronaut.http.netty.body
Interface NettyBodyWriter<T>
- Type Parameters:
T
- The type to write
- All Superinterfaces:
MessageBodyWriter<T>
- All Known Implementing Classes:
FileBodyWriter
,InputStreamBodyWriter
,NettyJsonHandler
,NettyWritableBodyWriter
,StreamFileBodyWriter
,SystemFileBodyWriter
Netty-specific writer.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
writeTo
(@NonNull HttpRequest<?> request, @NonNull MutableHttpResponse<T> outgoingResponse, @NonNull Argument<T> type, @NonNull MediaType mediaType, T object, @NonNull NettyWriteContext nettyContext) Write an object to the given context.Methods inherited from interface io.micronaut.http.body.MessageBodyWriter
createSpecific, isBlocking, isWriteable, writeTo, writeTo
-
Method Details
-
writeTo
@NonNull void writeTo(@NonNull @NonNull HttpRequest<?> request, @NonNull @NonNull MutableHttpResponse<T> outgoingResponse, @NonNull @NonNull Argument<T> type, @NonNull @NonNull MediaType mediaType, @NonNull T object, @NonNull @NonNull NettyWriteContext nettyContext) throws CodecException Write an object to the given context.- Parameters:
request
- The associated requestoutgoingResponse
- The outgoing response.type
- The typemediaType
- The media typeobject
- The object to writenettyContext
- The netty context- Throws:
CodecException
- If an error occurs decoding
-