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.mstfdryl.nettychat.ChatClientInitializer.java

/**
 *
 * @author MstfDryl
 */
class ChatClientInitializer extends ChannelInitializer<SocketChannel> {

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

public class HttpServerInitializer extends ChannelInitializer<SocketChannel> {
    private TrafficCounter trafficCounter;
    private Statistics statistics = new Statistics();

    @Override
    public void initChannel(SocketChannel ch) throws Exception {

From source file com.myftpserver.channelinitializer.ActiveChannelInitializer.java

/**
 * 
 * @author SITO3
 *
 */
public class ActiveChannelInitializer extends ChannelInitializer<Channel> {

From source file com.myftpserver.channelinitializer.CommandChannelInitializer.java

/**
 * 
 * @author SITO3
 *
 */

From source file com.myftpserver.channelinitializer.PassiveChannelInitializer.java

/**
 * 
 * @author SITO3
 *
 */
public class PassiveChannelInitializer extends ChannelInitializer<Channel> {

From source file com.mylearn.netty.sample.websocket.server.WebSocketServerInitializer.java

/**
 */
public class WebSocketServerInitializer extends ChannelInitializer<SocketChannel> {
    @Override
    public void initChannel(SocketChannel ch) throws Exception {
        ChannelPipeline pipeline = ch.pipeline();

From source file com.mylearn.netty.sample.worldclock.WorldClockClientInitializer.java

public class WorldClockClientInitializer extends ChannelInitializer<SocketChannel> {

    @Override
    public void initChannel(SocketChannel ch) throws Exception {
        ChannelPipeline p = ch.pipeline();
        p.addLast("frameDecoder", new ProtobufVarint32FrameDecoder());

From source file com.mylearn.netty.sample.worldclock.WorldClockServerInitializer.java

public class WorldClockServerInitializer extends ChannelInitializer<SocketChannel> {
    @Override
    public void initChannel(SocketChannel ch) throws Exception {
        ChannelPipeline p = ch.pipeline();
        p.addLast("frameDecoder", new ProtobufVarint32FrameDecoder());
        p.addLast("protobufDecoder", new ProtobufDecoder(WorldClockProtocol.Locations.getDefaultInstance()));

From source file com.myseti.framework.monitor.net.MonitorServerInitializer.java

/**
 *
 * @author blue
 */
public class MonitorServerInitializer extends ChannelInitializer<SocketChannel> {

From source file com.netty.file.HttpUploadClientIntializer.java

public class HttpUploadClientIntializer extends ChannelInitializer<SocketChannel> {

    private final SslContext sslCtx;

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