Class GremlinResponseFrameEncoder
- java.lang.Object
- 
- io.netty.channel.ChannelHandlerAdapter
- 
- io.netty.channel.ChannelOutboundHandlerAdapter
- 
- io.netty.handler.codec.MessageToMessageEncoder<ResponseMessage>
- 
- org.apache.tinkerpop.gremlin.server.handler.GremlinResponseFrameEncoder
 
 
 
 
- 
- All Implemented Interfaces:
- io.netty.channel.ChannelHandler,- io.netty.channel.ChannelOutboundHandler
 
 @Sharable public class GremlinResponseFrameEncoder extends io.netty.handler.codec.MessageToMessageEncoder<ResponseMessage> Ensures that anyResponseMessagemanages to get converted to aFrame. By converting toFramedownstream protocols can treat the genericFrameany way it wants (e.g. write it back as a byte array, websocket frame, etc).- Author:
- Stephen Mallette (http://stephen.genoprime.com)
 
- 
- 
Constructor SummaryConstructors Constructor Description GremlinResponseFrameEncoder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidencode(io.netty.channel.ChannelHandlerContext ctx, ResponseMessage o, List<Object> objects)- 
Methods inherited from class io.netty.handler.codec.MessageToMessageEncoderacceptOutboundMessage, write
 - 
Methods inherited from class io.netty.channel.ChannelOutboundHandlerAdapterbind, close, connect, deregister, disconnect, flush, read
 - 
Methods inherited from class io.netty.channel.ChannelHandlerAdapterensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
 
- 
 
- 
- 
- 
Method Detail- 
encodeprotected void encode(io.netty.channel.ChannelHandlerContext ctx, ResponseMessage o, List<Object> objects) throws Exception- Specified by:
- encodein class- io.netty.handler.codec.MessageToMessageEncoder<ResponseMessage>
- Throws:
- Exception
 
 
- 
 
-