@ChannelHandler.Sharable public class ChannelStringHandler extends io.netty.channel.SimpleChannelInboundHandler<String>
Constructor and Description |
---|
ChannelStringHandler(Decoder<String> decoder,
PointHandler pointhandler,
PointPreprocessor preprocessor) |
Modifier and Type | Method and Description |
---|---|
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
String msg) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
static void |
processPointLine(String message,
Decoder<String> decoder,
PointHandler pointHandler,
PointPreprocessor preprocessor,
io.netty.channel.ChannelHandlerContext ctx)
This probably belongs in a base class.
|
acceptInboundMessage, channelRead
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
public ChannelStringHandler(Decoder<String> decoder, PointHandler pointhandler, @Nullable PointPreprocessor preprocessor)
protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx, String msg) throws Exception
public static void processPointLine(String message, Decoder<String> decoder, PointHandler pointHandler, @Nullable PointPreprocessor preprocessor, @Nullable io.netty.channel.ChannelHandlerContext ctx)
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) throws Exception
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in interface io.netty.channel.ChannelInboundHandler
exceptionCaught
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
Copyright © 2017. All rights reserved.