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 com.facebook.nifty.core.NiftyDispatcher.java

/**
 * Dispatch TNiftyTransport to the TProcessor and write output back.
 *
 * Note that all current async thrift clients are capable of sending multiple requests at once
 * but not capable of handling out-of-order responses to those requests, so this dispatcher
 * sends the requests in order. (Eventually this will be conditional on a flag in the thrift

From source file com.feihong.newzxclient.tcp.NettyClientHandler.java

/**
 * ReceiveHandler 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 NettyClientHandler extends ChannelInboundHandlerAdapter {

From source file com.fire.login.http.HttpInboundHandler.java

/**
 * Http??GET\POST(application/x-www-form-urlencoded)
 * 
 * @author lhl
 *
 *         2016328 ?3:49:19

From source file com.fjn.helper.frameworkex.netty.v4.discardserver.DiscardServerHandler.java

public class DiscardServerHandler extends ChannelInboundHandlerAdapter {
    private String line = "";
    private String content = "";

    /**
     * ??

From source file com.fjn.helper.frameworkex.netty.v4.echotest.EchoServerHandler.java

@Sharable
public class EchoServerHandler extends ChannelInboundHandlerAdapter {
    @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
        System.out.println("Server received : " + msg);
        ctx.write(msg);

From source file com.fjn.helper.frameworkex.netty.v4.timetest.TimeClientHandler.java

public class TimeClientHandler extends ChannelInboundHandlerAdapter {
    private ByteBuf buf;

    @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) {
        ByteBuf m = (ByteBuf) msg;

From source file com.fjn.helper.frameworkex.netty.v4.timetest.TimeServerHandler.java

public class TimeServerHandler extends ChannelInboundHandlerAdapter {
    @Override
    public void channelActive(ChannelHandlerContext ctx) {
        ChannelFuture f = ctx.writeAndFlush(new UnixTime());
        f.addListener(ChannelFutureListener.CLOSE);
    }

From source file com.flysoloing.learning.network.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 ChannelInboundHandlerAdapter {

From source file com.flysoloing.learning.network.netty.echo.EchoServerHandler.java

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

From source file com.flysoloing.learning.network.netty.http.helloworld.HttpHelloWorldServerHandler.java

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

    private static final AsciiString CONTENT_TYPE = new AsciiString("Content-Type");
    private static final AsciiString CONTENT_LENGTH = new AsciiString("Content-Length");
    private static final AsciiString CONNECTION = new AsciiString("Connection");