Package org.eclipse.jetty.spdy.server.http

Examples of org.eclipse.jetty.spdy.server.http.ReferrerPushStrategy


        sslContextFactory.setTrustStorePassword("storepwd");

        Server server = new Server();

        Map<Short, PushStrategy> pushStrategies = new HashMap<>();
        pushStrategies.put(SPDY.V3, new ReferrerPushStrategy());
        HTTPSPDYServerConnector connector = new HTTPSPDYServerConnector(server, sslContextFactory, pushStrategies);
        connector.setPort(8443);
        server.addConnector(connector);

        // Drupal seems to only work on the root context,
View Full Code Here


        sslContextFactory.setTrustStorePassword("storepwd");

        Server server = new Server();

        Map<Short, PushStrategy> pushStrategies = new HashMap<>();
        pushStrategies.put(SPDY.V3, new ReferrerPushStrategy());
        HTTPSPDYServerConnector tlsConnector = new HTTPSPDYServerConnector(server, sslContextFactory, pushStrategies);
        tlsConnector.setPort(tlsPort);
        server.addConnector(tlsConnector);
        HTTPSPDYServerConnector connector = new HTTPSPDYServerConnector(server, null, pushStrategies);
        connector.setPort(port);
View Full Code Here

                "SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA");
       
       
        // Spdy Connector
        NegotiatingServerConnectionFactory.checkProtocolNegotiationAvailable();
        PushStrategy push = new ReferrerPushStrategy();
        HTTPSPDYServerConnectionFactory spdy2 = new HTTPSPDYServerConnectionFactory(2,config,push);
        spdy2.setInputBufferSize(8192);
        spdy2.setInitialWindowSize(32768);
        HTTPSPDYServerConnectionFactory spdy3 = new HTTPSPDYServerConnectionFactory(3,config,push);
        spdy2.setInputBufferSize(8192);
View Full Code Here

        // A ReferrerPushStrategy is being initialized.
        // See:
        // http://www.eclipse.org/jetty/documentation/current/spdy-configuring-push.html
        // for more details.
        PushStrategy push = new ReferrerPushStrategy();
        HTTPSPDYServerConnectionFactory spdy2 =
                new HTTPSPDYServerConnectionFactory(2, config, push);
        spdy2.setInputBufferSize(8192);
        spdy2.setInitialWindowSize(32768);
View Full Code Here

        HTTPSPDYServerConnectionFactory spdy2 =
                new HTTPSPDYServerConnectionFactory(2, https_config);

        HTTPSPDYServerConnectionFactory spdy3 =
                new HTTPSPDYServerConnectionFactory(3, https_config,
                        new ReferrerPushStrategy());

        // NPN Factory
        NegotiatingServerConnectionFactory.checkProtocolNegotiationAvailable();
        NPNServerConnectionFactory npn = new NPNServerConnectionFactory(
                spdy3.getProtocol(),
View Full Code Here

        this.nonPushableUserAgentPatterns = nonPushableUserAgentPatterns;
    }

    @Override
    public PushStrategy build() {
        final ReferrerPushStrategy strategy = new ReferrerPushStrategy();

        if (pushableOriginPatterns != null) {
            strategy.setAllowedPushOrigins(pushableOriginPatterns);
        }

        if (pushableContentTypes != null) {
            strategy.setPushContentTypes(pushableContentTypes);
        }

        if (pushableFilenamePatterns != null) {
            strategy.setPushRegexps(pushableFilenamePatterns);
        }

        if (nonPushableUserAgentPatterns != null) {
            strategy.setUserAgentBlacklist(nonPushableUserAgentPatterns);
        }

        strategy.setMaxAssociatedResources(maxAssociatedResources);
        strategy.setReferrerPushPeriod((int) referrerPushPeriod.toMilliseconds());

        return strategy;
    }
View Full Code Here

TOP

Related Classes of org.eclipse.jetty.spdy.server.http.ReferrerPushStrategy

Copyright © 2018 www.massapicom. 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.