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

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

Introduction

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

Usage

From source file book.netty.n4delimiterC5P1.EchoServerHandler.java

/**
 * @author lilinfeng
 * @date 2014214
 * @version 1.0
 */
@Sharable

From source file book.netty.n5fixedLenC5P2.EchoServerHandler.java

/**
 * @author lilinfeng
 * @date 2014214
 * @version 1.0
 */
@Sharable

From source file cc.changic.platform.etl.schedule.http.HttpServerHandler.java

public class HttpServerHandler extends ChannelHandlerAdapter {
    private static final byte[] CONTENT = { 'H', 'e', 'l', 'l', 'o', ' ', 'W', 'o', 'r', 'l', 'd' };

    //    @Override
    //    public void channelReadComplete(ChannelHandlerContext ctx) {
    //        ctx.flush();

From source file cc.sharper.netty.delimiter.EchoClientHandler.java

public class EchoClientHandler extends ChannelHandlerAdapter {

    private int counter;

    static final String ECHO_REQ = "Hi, Sharper. Welcome to Netty.$_";

From source file cc.sharper.netty.delimiter.EchoServerHandler.java

@Sharable
public class EchoServerHandler extends ChannelHandlerAdapter {

    int counter = 0;

    @Override

From source file cc.sharper.netty.TimeClientHandler.java

public class TimeClientHandler extends ChannelHandlerAdapter {

    private static final Logger logger = Logger.getLogger(TimeClientHandler.class.getName());

    private final ByteBuf firstMessage;

From source file cc.sharper.netty.TimeServerHandler.java

public class TimeServerHandler extends ChannelHandlerAdapter {
    @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
        ByteBuf buf = (ByteBuf) msg;
        byte[] req = new byte[buf.readableBytes()];
        buf.readBytes(req);

From source file cn.yesway.demo.book.basic.TimeClientHandler.java

/**
 * @author lilinfeng
 * @date 2014214
 * @version 1.0
 */
public class TimeClientHandler extends ChannelHandlerAdapter {

From source file cn.yesway.demo.book.basic.TimeServerHandler.java

/**
 * @author lilinfeng
 * @date 2014214
 * @version 1.0
 */
public class TimeServerHandler extends ChannelHandlerAdapter {

From source file cn.yesway.demo.book.delimiter.EchoClientHandler.java

/**
 * @author lilinfeng
 * @date 2014214
 * @version 1.0
 */
public class EchoClientHandler extends ChannelHandlerAdapter {