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.hop.hhxx.example.proxy.HexDumpProxyInitializer.java

public class HexDumpProxyInitializer extends ChannelInitializer<SocketChannel> {

    private final String remoteHost;
    private final int remotePort;

    public HexDumpProxyInitializer(String remoteHost, int remotePort) {

From source file com.hop.hhxx.example.securechat.SecureChatClientInitializer.java

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

    private final SslContext sslCtx;

From source file com.hop.hhxx.example.securechat.SecureChatServerInitializer.java

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

    private final SslContext sslCtx;

From source file com.hop.hhxx.example.socksproxy.SocksServerInitializer.java

public final class SocksServerInitializer extends ChannelInitializer<SocketChannel> {
    @Override
    public void initChannel(SocketChannel ch) throws Exception {
        ch.pipeline().addLast(new LoggingHandler(LogLevel.DEBUG), new SocksPortUnificationServerHandler(),
                io.netty.example.socksproxy.SocksServerHandler.INSTANCE);
    }

From source file com.hop.hhxx.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.hop.hhxx.example.spdy.server.SpdyServerInitializer.java

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

    private final SslContext sslCtx;

From source file com.hop.hhxx.example.telnet.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();

From source file com.hop.hhxx.example.telnet.TelnetServerInitializer.java

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

    private static final StringDecoder DECODER = new StringDecoder();

From source file com.hop.hhxx.example.worldclock.WorldClockClientInitializer.java

public class WorldClockClientInitializer extends ChannelInitializer<SocketChannel> {

    private final SslContext sslCtx;

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

From source file com.hop.hhxx.example.worldclock.WorldClockServerInitializer.java

public class WorldClockServerInitializer extends ChannelInitializer<SocketChannel> {

    private final SslContext sslCtx;

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