List of usage examples for io.netty.channel ChannelHandlerAdapter subclass-usage
From source file com.jjzhk.Chapter14.netty.HeartBeatRespHandler.java
public class HeartBeatRespHandler extends ChannelHandlerAdapter { @Override public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception { NettyMessage message = (NettyMessage) msg; if (message.getHeader() != null && message.getHeader().getType() == MessageType.HEARTBEAT_REQ.value()) {
From source file com.jjzhk.Chapter14.netty.LoginAuthReqHandler.java
public class LoginAuthReqHandler extends ChannelHandlerAdapter { /** * Calls {@link ChannelHandlerContext#fireChannelActive()} to forward to the * next {@link ChannelHandler} in the {@link ChannelPipeline}. *
From source file com.jjzhk.Chapter14.netty.LoginAuthRespHandler.java
public class LoginAuthRespHandler extends ChannelHandlerAdapter { private Map<String, Boolean> nodeCheck = new ConcurrentHashMap<String, Boolean>(); private String[] whitekList = { "127.0.0.1", "192.168.1.104" }; /**
From source file com.kradac.karview.netty.EchoServerHandler.java
/** * * @author Diego C */ public class EchoServerHandler extends ChannelHandlerAdapter {
From source file com.kwk.netty.echo.EchoClientHandler.java
/** * Handler implementation for the echo client. It initiates the ping-pong * traffic between the echo client and server by sending the first message to * the server. */ public class EchoClientHandler extends ChannelHandlerAdapter {
From source file com.kwk.netty.echo.EchoServerHandler.java
/** * Handler implementation for the echo server. */ @Sharable public class EchoServerHandler extends ChannelHandlerAdapter {
From source file com.l2jmobius.gameserver.network.telnet.TelnetServerHandler.java
/** * @author UnAfraid */ @Sharable public class TelnetServerHandler extends ChannelHandlerAdapter { private static final Pattern COMMAND_ARGS_PATTERN = Pattern.compile("\"([^\"]*)\"|([^\\s]+)");
From source file com.lampard.netty4.basic.TimeClientHandler.java
/** * @author lilinfeng * @date 2014214 * @version 1.0 */ public class TimeClientHandler extends ChannelHandlerAdapter {
From source file com.lampard.netty4.basic.TimeServerHandler.java
/** * @author lilinfeng * @date 2014214 * @version 1.0 */ public class TimeServerHandler extends ChannelHandlerAdapter {
From source file com.lampard.netty4.codec.marshalling.SubReqClientHandler.java
/** * @author lilinfeng * @date 2014214 * @version 1.0 */ public class SubReqClientHandler extends ChannelHandlerAdapter {