Class WsAndHttpChannelizerHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- org.apache.tinkerpop.gremlin.server.handler.WsAndHttpChannelizerHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
@Sharable public class WsAndHttpChannelizerHandler extends io.netty.channel.ChannelInboundHandlerAdapter
A ChannelInboundHandlerAdapter for use withWsAndHttpChannelizer
that toggles between WebSockets and http.- Author:
- Keith Lohnes lohnesk@gmail.com
-
-
Constructor Summary
Constructors Constructor Description WsAndHttpChannelizerHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
channelRead(io.netty.channel.ChannelHandlerContext ctx, Object obj)
void
configure(io.netty.channel.ChannelPipeline pipeline)
void
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
Channelizer
getWsChannelizer()
void
init(ServerGremlinExecutor serverGremlinExecutor, HttpGremlinEndpointHandler httpGremlinEndpointHandler)
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Method Detail
-
init
public void init(ServerGremlinExecutor serverGremlinExecutor, HttpGremlinEndpointHandler httpGremlinEndpointHandler)
-
getWsChannelizer
public Channelizer getWsChannelizer()
-
configure
public void configure(io.netty.channel.ChannelPipeline pipeline)
-
channelRead
public void channelRead(io.netty.channel.ChannelHandlerContext ctx, Object obj)
- Specified by:
channelRead
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
channelRead
in classio.netty.channel.ChannelInboundHandlerAdapter
-
exceptionCaught
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
- Specified by:
exceptionCaught
in interfaceio.netty.channel.ChannelHandler
- Specified by:
exceptionCaught
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
exceptionCaught
in classio.netty.channel.ChannelInboundHandlerAdapter
-
-