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

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

Introduction

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

Usage

From source file me.netty.http.handler.HelloWorldHttp2Handler.java

/**
 * A simple handler that responds with the message "Hello World!".
 *
 * <p>This example is making use of the "multiplexing" http2 API, where streams are mapped to child
 * Channels. This API is very experimental and incomplete.
 */

From source file net.hasor.rsf.protocol.hprose.HproseHttpCoder.java

/**
 * Hprose
 * @version : 2017126
 * @author (zyc@hasor.net)
 */
//@ChannelHandler.Sharable

From source file netkernel.HttpRequestResponseAdapterChannelHandler.java

public class HttpRequestResponseAdapterChannelHandler extends ChannelDuplexHandler {

    @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {

        // HttpRequest:

From source file netty.example.http2.helloworld.multiplex.server.HelloWorldHttp2Handler.java

/**
 * A simple handler that responds with the message "Hello World!".
 *
 * <p>This example is making use of the "multiplexing" http2 API, where streams are mapped to child
 * Channels. This API is very experimental and incomplete.
 */

From source file netty.example.memcache.binary.MemcacheClientHandler.java

public class MemcacheClientHandler extends ChannelDuplexHandler {

    /**
     * Transforms basic string requests to binary memcache requests
     */
    @Override

From source file netty.example.redis.RedisClientHandler.java

/**
 * An example Redis client handler. This handler read input from STDIN and write output to STDOUT.
 */
public class RedisClientHandler extends ChannelDuplexHandler {

    @Override

From source file netty.example.spdy.client.SpdyFrameLogger.java

/**
 * Logs SPDY frames for debugging purposes.
 */
public class SpdyFrameLogger extends ChannelDuplexHandler {

    private enum Direction {

From source file network.thunder.core.communication.layer.low.ping.PingHandler.java

public class PingHandler extends ChannelDuplexHandler {

    static final long PING_INTERVAL = 10 * 1000;
    static final long TIMEOUT = 30 * 1000;

    long lastMessageSent = System.currentTimeMillis();

From source file network.thunder.core.communication.nio.handler.low.DumpHexHandler.java

/**
 * Creates a newly configured {@link ChannelPipeline} for a new channel.
 */
public class DumpHexHandler extends ChannelDuplexHandler {

    @Override

From source file network.thunder.core.communication.nio.handler.low.NodeConnectionHandler.java

/**
 * Creates a newly configured {@link ChannelPipeline} for a new channel.
 */
public class NodeConnectionHandler extends ChannelDuplexHandler {

    private P2PContext context;