Example usage for io.netty.channel ChannelInboundHandlerAdapter subclass-usage

List of usage examples for io.netty.channel ChannelInboundHandlerAdapter subclass-usage

Introduction

In this page you can find the example usage for io.netty.channel ChannelInboundHandlerAdapter subclass-usage.

Usage

From source file chapter01.EchoClientHandler.java

@Log
public class EchoClientHandler extends ChannelInboundHandlerAdapter {
    @Override
    public void channelActive(ChannelHandlerContext ctx) {
        String sendMessage = "Hello netty";

From source file club.jmint.crossing.client.ClientHandler.java

public class ClientHandler extends ChannelInboundHandlerAdapter {
    private HashMap<String, CrossingRespProto.CrossingResp> respMsg;

    public ClientHandler() {
        if (respMsg == null) {
            respMsg = new HashMap<String, CrossingRespProto.CrossingResp>();

From source file club.jmint.crossing.server.ServerHandler.java

/**
 * Handler implementation for the server.
 */
@Sharable
public class ServerHandler extends ChannelInboundHandlerAdapter {
    private ServiceHandler shandler;

From source file cn.david.handler.EchoServerHandler.java

/**
 * Handler implementation for the echo server.
 */
@Sharable
public class EchoServerHandler extends ChannelInboundHandlerAdapter {

From source file cn.david.main.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 ChannelInboundHandlerAdapter {

From source file cn.david.socks.DirectClientHandler.java

public final class DirectClientHandler extends ChannelInboundHandlerAdapter {

    private final Promise<Channel> promise;

    public DirectClientHandler(Promise<Channel> promise) {
        this.promise = promise;

From source file cn.david.socks.RelayHandler.java

public final class RelayHandler extends ChannelInboundHandlerAdapter {

    private final Channel relayChannel;

    public RelayHandler(Channel relayChannel) {
        this.relayChannel = relayChannel;

From source file cn.dennishucd.nettyhttpserver.HttpServerHandler.java

public class HttpServerHandler extends ChannelInboundHandlerAdapter {

    private Logger logger = Logger.getLogger(this.getClass());

    private static final String CONTENT = "{\"code\":2000,\"msg\":\"?\"}";

From source file cn.ifengkou.hestia.client.MessageSendHandler.java

public class MessageSendHandler extends ChannelInboundHandlerAdapter {

    private final static Logger LOGGER = LoggerFactory.getLogger(MessageSendHandler.class);
    volatile private Channel channel;
    private SocketAddress remoteAddr;

From source file cn.link.lis.LIPClientHandler.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 LIPClientHandler extends ChannelInboundHandlerAdapter {