T - The type to be handled@Internal @Indexed(value=NettyCustomizableResponseTypeHandler.class) public interface NettyCustomizableResponseTypeHandler<T> extends io.micronaut.core.order.Ordered
| Modifier and Type | Method and Description |
|---|---|
void |
handle(T object,
io.micronaut.http.HttpRequest<?> request,
io.micronaut.http.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, io.micronaut.http.HttpRequest<?> request, io.micronaut.http.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