Class WebSocketChannelizer
- java.lang.Object
- 
- io.netty.channel.ChannelHandlerAdapter
- 
- io.netty.channel.ChannelInboundHandlerAdapter
- 
- io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
- 
- org.apache.tinkerpop.gremlin.server.AbstractChannelizer
- 
- org.apache.tinkerpop.gremlin.server.channel.WebSocketChannelizer
 
 
 
 
 
- 
- All Implemented Interfaces:
- io.netty.channel.ChannelHandler,- io.netty.channel.ChannelInboundHandler,- Channelizer
 
 public class WebSocketChannelizer extends AbstractChannelizer AChannelizerthat exposes a WebSocket-based Gremlin endpoint with a custom sub-protocol.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
 
- 
- 
Field Summary- 
Fields inherited from class org.apache.tinkerpop.gremlin.server.AbstractChannelizerauthenticator, authorizer, DEFAULT_SERIALIZERS, graphManager, GREMLIN_ENDPOINT, gremlinExecutor, gremlinExecutorService, PIPELINE_AUTHENTICATOR, PIPELINE_AUTHORIZER, PIPELINE_HTTP_AGGREGATOR, PIPELINE_HTTP_REQUEST_DECODER, PIPELINE_HTTP_RESPONSE_ENCODER, PIPELINE_OP_EXECUTOR, PIPELINE_OP_SELECTOR, PIPELINE_REQUEST_HANDLER, PIPELINE_SSL, PIPELINE_WEBSOCKET_SERVER_COMPRESSION, scheduledExecutorService, serializers, settings, sslContext
 
- 
 - 
Constructor SummaryConstructors Constructor Description WebSocketChannelizer()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(io.netty.channel.ChannelPipeline pipeline)This method is called from withinAbstractChannelizer.initChannel(SocketChannel)just after the SSL handler is put in the pipeline.ObjectcreateIdleDetectionMessage()Create a message to send to seemingly dead clients to see if they respond back.voidinit(ServerGremlinExecutor serverGremlinExecutor)This method is called just after theChannelizeris initialized.booleansupportsIdleMonitor()Determines if the channelizer supports a method for keeping the connection alive and auto-closing zombie channels.- 
Methods inherited from class org.apache.tinkerpop.gremlin.server.AbstractChannelizercreateAuthenticationHandler, finalize, initChannel
 - 
Methods inherited from class io.netty.channel.ChannelInitializerchannelRegistered, exceptionCaught, handlerAdded, handlerRemoved
 - 
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapterchannelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggered
 
- 
 
- 
- 
- 
Method Detail- 
initpublic void init(ServerGremlinExecutor serverGremlinExecutor) Description copied from interface:ChannelizerThis method is called just after theChannelizeris initialized.- Specified by:
- initin interface- Channelizer
- Overrides:
- initin class- AbstractChannelizer
 
 - 
configurepublic void configure(io.netty.channel.ChannelPipeline pipeline) Description copied from class:AbstractChannelizerThis method is called from withinAbstractChannelizer.initChannel(SocketChannel)just after the SSL handler is put in the pipeline. Modify the pipeline as needed here.- Specified by:
- configurein class- AbstractChannelizer
 
 - 
supportsIdleMonitorpublic boolean supportsIdleMonitor() Description copied from interface:ChannelizerDetermines if the channelizer supports a method for keeping the connection alive and auto-closing zombie channels.
 - 
createIdleDetectionMessagepublic Object createIdleDetectionMessage() Description copied from interface:ChannelizerCreate a message to send to seemingly dead clients to see if they respond back. The message sent will be dependent on the implementation. For example, a websocket implementation would create a "ping" message. This method will only be used ifChannelizer.supportsIdleMonitor()istrue.
 
- 
 
-