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

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

Introduction

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

Usage

From source file com.springapp.mvc.netty.example.spdy.client.SpdyClientInitializer.java

public class SpdyClientInitializer extends ChannelInitializer<SocketChannel> {

    private static final int MAX_SPDY_CONTENT_LENGTH = 1024 * 1024; // 1 MB

    private final SslContext sslCtx;
    private final HttpResponseClientHandler httpResponseHandler;

From source file com.springapp.mvc.netty.example.spdy.server.SpdyServerInitializer.java

/**
 * Sets up the Netty pipeline
 */
public class SpdyServerInitializer extends ChannelInitializer<SocketChannel> {

    private final SslContext sslCtx;

From source file com.springapp.mvc.netty.example.telnet.TelnetClientInitializer.java

/**
 * Creates a newly configured {@link io.netty.channel.ChannelPipeline} for a new channel.
 */
public class TelnetClientInitializer extends ChannelInitializer<SocketChannel> {

    private static final StringDecoder DECODER = new StringDecoder();

From source file com.springapp.mvc.netty.example.telnet.TelnetServerInitializer.java

/**
 * Creates a newly configured {@link io.netty.channel.ChannelPipeline} for a new channel.
 */
public class TelnetServerInitializer extends ChannelInitializer<SocketChannel> {

    private static final StringDecoder DECODER = new StringDecoder();

From source file com.stratio.deep.commons.extractor.server.ExtractorServerInitializer.java

public class ExtractorServerInitializer<T> extends ChannelInitializer<SocketChannel> {

    private final SslContext sslCtx;

    public ExtractorServerInitializer(SslContext sslCtx) {
        this.sslCtx = sslCtx;

From source file com.stratio.deep.core.extractor.client.ExtractorClientInitializer.java

public class ExtractorClientInitializer<T> extends ChannelInitializer<SocketChannel> {

    private final SslContext sslCtx;

    public ExtractorClientInitializer(SslContext sslCtx) {
        this.sslCtx = sslCtx;

From source file com.study.hc.net.netty.chat.server.WebSocketServerInitializer.java

/**
 */
public class WebSocketServerInitializer extends ChannelInitializer<SocketChannel> {

    private static final String WEBSOCKET_PATH = "/websocket";

From source file com.study.hc.net.netty.http.HttpHelloWorldServerInitializer.java

public class HttpHelloWorldServerInitializer extends ChannelInitializer<SocketChannel> {

    private final SslContext sslCtx;

    public HttpHelloWorldServerInitializer(SslContext sslCtx) {
        this.sslCtx = sslCtx;

From source file com.sunan.van.client.TelnetClientInitializer.java

/**
 * Creates a newly configured {@link ChannelPipeline} for a new channel.
 */
public class TelnetClientInitializer extends ChannelInitializer<SocketChannel> {
    private static final StringDecoder DECODER = new StringDecoder();
    private static final StringEncoder ENCODER = new StringEncoder();

From source file com.sunan.van.client.VanClientInitializer.java

/**
 * Creates a newly configured {@link ChannelPipeline} for a new channel.
 */
public class VanClientInitializer extends ChannelInitializer<SocketChannel> {
    private static final StringDecoder DECODER = new StringDecoder();
    private static final StringEncoder ENCODER = new StringEncoder();