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.mpush.netty.udp.UDPChannelHandler.java

/**
 * Created by ohun on 16/10/21.
 *
 * @author ohun@live.cn ()
 */
@ChannelHandler.Sharable

From source file com.mycompany.nettyweb.HttpServerHandler.java

public class HttpServerHandler extends ChannelInboundHandlerAdapter {
    private Long counter;
    private Date date;
    private TrafficCounter trafficCounter;
    private Statistics statistics;
    private FullHttpResponse response;

From source file com.myftpserver.handler.ReceiveFileHandler.java

/**
 * 
 * @author SITO3
 *
 */
public class ReceiveFileHandler extends ChannelInboundHandlerAdapter implements ChannelFutureListener {

From source file com.netflix.recipes.rss.netty.NettyHandlerContainer.java

@Sharable
public class NettyHandlerContainer extends ChannelInboundHandlerAdapter {
    public static final String PROPERTY_BASE_URI = "com.sun.jersey.server.impl.container.netty.baseUri";

    private final WebApplication application;
    private final String baseUri;

From source file com.netty.BaseHttpServerHandler.java

@ChannelHandler.Sharable
@Component
public abstract class BaseHttpServerHandler extends ChannelInboundHandlerAdapter {
    private static final byte[] CONTENT = { 'H', 'e', 'l', 'l', 'o', ' ', 'W', 'o', 'r', 'l', 'd' };

    @Override

From source file com.netty.grpc.proxy.demo.handler.GrpcProxyBackendHandler.java

@ChannelHandler.Sharable
class GrpcProxyBackendHandler extends ChannelInboundHandlerAdapter {
    public static final int DEFAULT_FLOW_CONTROL_WINDOW = 1048576; // 1MiB
    private final Channel inboundChannel;
    private final Http2FrameWriter writer = new DefaultHttp2FrameWriter();
    private boolean first = true;

From source file com.netty.grpc.proxy.demo.handler.GrpcProxyFrontendHandler.java

public class GrpcProxyFrontendHandler extends ChannelInboundHandlerAdapter {

    private final String[] remoteHosts;
    private final int[] remotePorts;
    private final Channel[] outboundChannels;
    private boolean first = true;

From source file com.netty.http.impl.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");

From source file com.netty4.http.helloword.HttpHelloWorldServerHandler.java

public class HttpHelloWorldServerHandler extends ChannelInboundHandlerAdapter {
    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 com.nettyhttpserver.server.NettyServerHandler.java

/**
 *
 * @author McKey
 */
class NettyServerHandler extends ChannelInboundHandlerAdapter {
    //private static Timer timer = new HashedWheelTimer();