@ChannelHandler.Sharable public class GremlinResponseFrameEncoder extends io.netty.handler.codec.MessageToMessageEncoder<ResponseMessage>
ResponseMessage
manages to get converted to a Frame
. By converting to Frame
downstream protocols can treat the generic Frame
any way it wants (e.g. write it back as a byte array,
websocket frame, etc).Constructor and Description |
---|
GremlinResponseFrameEncoder() |
Modifier and Type | Method and Description |
---|---|
protected void |
encode(io.netty.channel.ChannelHandlerContext ctx,
ResponseMessage o,
List<Object> objects) |
acceptOutboundMessage, write
bind, close, connect, deregister, disconnect, flush, read
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
protected void encode(io.netty.channel.ChannelHandlerContext ctx, ResponseMessage o, List<Object> objects) throws Exception
encode
in class io.netty.handler.codec.MessageToMessageEncoder<ResponseMessage>
Exception
Copyright © 2013–2023 Apache Software Foundation. All rights reserved.