@ChannelHandler.Sharable public class RestEasyHttpResponseEncoder extends io.netty.handler.codec.MessageToMessageEncoder<NettyHttpResponse>
MessageToMessageEncoder
implementation which encodes HttpResponse
's to
HttpResponse
's
This implementation is ChannelHandler.Sharable
Constructor and Description |
---|
RestEasyHttpResponseEncoder() |
Modifier and Type | Method and Description |
---|---|
protected void |
encode(io.netty.channel.ChannelHandlerContext ctx,
NettyHttpResponse nettyResponse,
List<Object> out) |
static void |
transformHeaders(NettyHttpResponse nettyResponse,
io.netty.handler.codec.http.HttpResponse response,
ResteasyProviderFactory factory) |
acceptOutboundMessage, write
bind, close, connect, deregister, disconnect, flush, read
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
protected void encode(io.netty.channel.ChannelHandlerContext ctx, NettyHttpResponse nettyResponse, List<Object> out) throws Exception
encode
in class io.netty.handler.codec.MessageToMessageEncoder<NettyHttpResponse>
Exception
public static void transformHeaders(NettyHttpResponse nettyResponse, io.netty.handler.codec.http.HttpResponse response, ResteasyProviderFactory factory)
Copyright © 2020 JBoss by Red Hat. All rights reserved.