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 |
|---|---|
void |
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(java.lang.Class<?> type) |
void 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(java.lang.Class<?> type)
type - The type to check