List of usage examples for io.netty.channel ChannelInitializer subclass-usage
From source file com.flysoloing.learning.network.netty.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.flysoloing.learning.network.netty.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(), SocksServerHandler.INSTANCE); }
From source file com.flysoloing.learning.network.netty.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.flysoloing.learning.network.netty.spdy.server.SpdyServerInitializer.java
/** * Sets up the Netty pipeline */ public class SpdyServerInitializer extends ChannelInitializer<SocketChannel> { private final SslContext sslCtx;
From source file com.flysoloing.learning.network.netty.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.flysoloing.learning.network.netty.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.flysoloing.learning.network.netty.worldclock.WorldClockClientInitializer.java
public class WorldClockClientInitializer extends ChannelInitializer<SocketChannel> { private final SslContext sslCtx; public WorldClockClientInitializer(SslContext sslCtx) { this.sslCtx = sslCtx;
From source file com.flysoloing.learning.network.netty.worldclock.WorldClockServerInitializer.java
public class WorldClockServerInitializer extends ChannelInitializer<SocketChannel> { private final SslContext sslCtx; public WorldClockServerInitializer(SslContext sslCtx) { this.sslCtx = sslCtx;
From source file com.fruit.core.socket.FruitServerPipelineFactory.java
public class FruitServerPipelineFactory extends ChannelInitializer<SocketChannel> { @Override public void initChannel(SocketChannel ch) throws Exception { ChannelPipeline pipeline = ch.pipeline(); pipeline.addLast("frameDecoder", new ProtobufVarint32FrameDecoder()); pipeline.addLast("protobufDecoder",
From source file com.fsocks.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(), SocksServerHandler.INSTANCE); }