Examples of NettyContainer


Examples of org.graylog2.jersey.container.netty.NettyContainer

        return new ServerBootstrap(new NioServerSocketChannelFactory(bossExecutor, workerExecutor));
    }

    @Override
    protected void startUp() throws Exception {
        final NettyContainer jerseyHandler = ContainerFactory.createContainer(NettyContainer.class,
                buildResourceConfig(
                        configuration.isRestEnableGzip(),
                        configuration.isRestEnableCors(),
                        prefixPluginResources("/plugins", pluginRestResources)));

        if (securityContextFactory != null) {
            LOG.info("Adding security context factory: <{}>", securityContextFactory);
            jerseyHandler.setSecurityContextFactory(securityContextFactory);
        } else {
            LOG.info("Not adding security context factory.");
        }

        final int maxInitialLineLength = configuration.getRestMaxInitialLineLength();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.