@ChannelHandler.Sharable
public class WsGremlinTextRequestDecoder
extends io.netty.handler.codec.MessageToMessageDecoder<io.netty.handler.codec.http.websocketx.TextWebSocketFrame>
TextWebSocketFrame
. Text-based frames are always assumed to be
"application/json" when it comes to serialization.Constructor and Description |
---|
WsGremlinTextRequestDecoder(Map<String,MessageSerializer<?>> serializers) |
Modifier and Type | Method and Description |
---|---|
protected void |
decode(io.netty.channel.ChannelHandlerContext channelHandlerContext,
io.netty.handler.codec.http.websocketx.TextWebSocketFrame frame,
List<Object> objects) |
acceptInboundMessage, channelRead
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
public WsGremlinTextRequestDecoder(Map<String,MessageSerializer<?>> serializers)
protected void decode(io.netty.channel.ChannelHandlerContext channelHandlerContext, io.netty.handler.codec.http.websocketx.TextWebSocketFrame frame, List<Object> objects) throws Exception
decode
in class io.netty.handler.codec.MessageToMessageDecoder<io.netty.handler.codec.http.websocketx.TextWebSocketFrame>
Exception
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.