T
- The type to be handled@Internal @Indexed(value=NettyCustomizableResponseTypeHandler.class) public interface NettyCustomizableResponseTypeHandler<T> extends Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Modifier and Type | Method and Description |
---|---|
io.netty.channel.ChannelFuture |
handle(T object,
HttpRequest<?> request,
MutableHttpResponse<?> response,
io.netty.channel.ChannelHandlerContext context)
Responsible for fully handling the response, including any closing of the channel.
|
boolean |
supports(Class<?> type) |
io.netty.channel.ChannelFuture handle(T object, HttpRequest<?> request, MutableHttpResponse<?> response, io.netty.channel.ChannelHandlerContext context)
object
- The object to be handledrequest
- The native Netty requestresponse
- The mutable Micronaut responsecontext
- The channel contextboolean supports(Class<?> type)
type
- The type to check