Class LegacySimpleServerHandshakeHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
pt.unl.fct.di.novasys.babel2.channels.legacy.simpleServer.LegacySimpleServerHandshakeHandler
- All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler
public class LegacySimpleServerHandshakeHandler
extends io.netty.channel.ChannelInboundHandlerAdapter
Netty inbound handler processing the initial legacy client handshake and registering connections.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortExpected magic number from legacy simple clients. -
Constructor Summary
ConstructorsConstructorDescriptionLegacySimpleServerHandshakeHandler(Babel runtime, LegacySimpleServerBabelChannel channel) Constructs a new legacy handshake handler. -
Method Summary
Modifier and TypeMethodDescriptionvoidchannelActive(io.netty.channel.ChannelHandlerContext ctx) voidchannelRead(io.netty.channel.ChannelHandlerContext ctx, Object obj) voiduserEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt) Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaughtMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
Field Details
-
SIMPLE_CLIENT_MAGIC_NUMBER
public static final short SIMPLE_CLIENT_MAGIC_NUMBERExpected magic number from legacy simple clients.- See Also:
-
-
Constructor Details
-
LegacySimpleServerHandshakeHandler
Constructs a new legacy handshake handler.- Parameters:
runtime- the Babel runtimechannel- the parent legacy server channel
-
-
Method Details
-
channelRead
-
channelActive
-
userEventTriggered
-