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 Summary
Constructors Constructor Description GremlinResponseFrameEncoder() 
- 
Method Summary
All 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.MessageToMessageEncoder
acceptOutboundMessage, write 
- 
Methods inherited from class io.netty.channel.ChannelOutboundHandlerAdapter
bind, close, connect, deregister, disconnect, flush, read 
- 
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable 
 - 
 
 - 
 
- 
- 
Method Detail
- 
encode
protected void encode(io.netty.channel.ChannelHandlerContext ctx, ResponseMessage o, List<Object> objects) throws Exception- Specified by:
 encodein classio.netty.handler.codec.MessageToMessageEncoder<ResponseMessage>- Throws:
 Exception
 
 - 
 
 -