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.lb.mysession.client.SessionClientInitializer.java

public class SessionClientInitializer extends ChannelInitializer<SocketChannel> {

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

From source file com.lb.mysession.server.ProtobufServerInitializer.java

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

From source file com.leadtone.riders.server.RidersWebSocketServerInitializer.java

/**
 */

@Component
public class RidersWebSocketServerInitializer extends ChannelInitializer<SocketChannel> {

From source file com.leiui.niodemo.http.netty.HttpHelloWorldServerInitializer.java

public class HttpHelloWorldServerInitializer extends ChannelInitializer<SocketChannel> {

    private final SslContext sslCtx;

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

From source file com.liferay.sync.engine.lan.server.file.LanFileServerInitializer.java

/**
 * @author Dennis Ju
 */
public class LanFileServerInitializer extends ChannelInitializer<SocketChannel> {

    public LanFileServerInitializer(SyncTrafficShapingHandler syncTrafficShapingHandler) {

From source file com.linecorp.armeria.server.http.HttpServerPipelineConfigurator.java

public final class HttpServerPipelineConfigurator extends ChannelInitializer<Channel> {

    private static final AsciiString SCHEME_HTTP = AsciiString.of("http");
    private static final AsciiString SCHEME_HTTPS = AsciiString.of("https");

    private static final int UPGRADE_REQUEST_MAX_LENGTH = 16384;

From source file com.linecorp.armeria.server.HttpServerPipelineConfigurator.java

/**
 * Configures Netty {@link ChannelPipeline} to serve HTTP/1 and 2 requests.
 */
final class HttpServerPipelineConfigurator extends ChannelInitializer<Channel> {

    private static final Logger logger = LoggerFactory.getLogger(HttpServerPipelineConfigurator.class);

From source file com.linecorp.armeria.server.ServerInitializer.java

final class ServerInitializer extends ChannelInitializer<Channel> {

    private final ServerConfig config;
    private final ServerPort port;
    private final DomainNameMapping<SslContext> sslContexts;
    private final Optional<GracefulShutdownHandler> gracefulShutdownHandler;

From source file com.linkedin.mitm.proxy.ProxyInitializer.java

/**
 * Initialize client to proxy channel and channel pipeline.
 *
 * @author shfeng
 */
public class ProxyInitializer extends ChannelInitializer<SocketChannel> {

From source file com.linkedin.proxy.netty.BaseInitializer.java

public abstract class BaseInitializer extends ChannelInitializer<SocketChannel> {
    public static final String FLAG_INIT_HTTP_BUFFER = "httpBuffer";

    protected static final Logger _LOG = Logger.getLogger(BaseInitializer.class);
    protected int _httpBufferSize;