Class HttpGremlinRequestEncoder
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelOutboundHandlerAdapter
-
- io.netty.handler.codec.MessageToMessageEncoder<RequestMessage>
-
- org.apache.tinkerpop.gremlin.driver.handler.HttpGremlinRequestEncoder
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelOutboundHandler
@Sharable public final class HttpGremlinRequestEncoder extends io.netty.handler.codec.MessageToMessageEncoder<RequestMessage>
ConvertsRequestMessage
to aHttpRequest
.
-
-
Constructor Summary
Constructors Constructor Description HttpGremlinRequestEncoder(MessageSerializer<?> serializer, UnaryOperator<io.netty.handler.codec.http.FullHttpRequest> interceptor)
Deprecated.HttpGremlinRequestEncoder(MessageSerializer<?> serializer, UnaryOperator<io.netty.handler.codec.http.FullHttpRequest> interceptor, boolean userAgentEnabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
encode(io.netty.channel.ChannelHandlerContext channelHandlerContext, RequestMessage requestMessage, 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
-
-
-
-
Constructor Detail
-
HttpGremlinRequestEncoder
@Deprecated public HttpGremlinRequestEncoder(MessageSerializer<?> serializer, UnaryOperator<io.netty.handler.codec.http.FullHttpRequest> interceptor)
Deprecated.
-
HttpGremlinRequestEncoder
public HttpGremlinRequestEncoder(MessageSerializer<?> serializer, UnaryOperator<io.netty.handler.codec.http.FullHttpRequest> interceptor, boolean userAgentEnabled)
-
-
Method Detail
-
encode
protected void encode(io.netty.channel.ChannelHandlerContext channelHandlerContext, RequestMessage requestMessage, List<Object> objects) throws Exception
- Specified by:
encode
in classio.netty.handler.codec.MessageToMessageEncoder<RequestMessage>
- Throws:
Exception
-
-