Package org.glassfish.grizzly.config.dom

Examples of org.glassfish.grizzly.config.dom.Ssl


    }

    private void updateSsl(final String propName, final String value) throws TransactionFailure {
        final Collection<Protocol> protocols = habitat.getAllServices(Protocol.class);
        for (Protocol protocol : protocols) {
            final Ssl ssl = protocol.getSsl();
            if (ssl != null) {
                ConfigSupport.apply(new SingleConfigCode<Ssl>() {
                    @Override
                    public Object run(Ssl param) {
                        if (SSL_CONFIGURATION_WANTAUTH.equals(propName)) {
View Full Code Here


        }
        try {
            ConfigSupport.apply(new SingleConfigCode<IiopListener>() {
                        public Object run(IiopListener param)
                                throws PropertyVetoException, TransactionFailure {
                            Ssl newSsl = param.createChild(Ssl.class);
                            command.populateSslElement(newSsl);
                            param.setSsl(newSsl);
                            return newSsl;
                        }
                    }, iiopListener);
View Full Code Here

            ConfigSupport.apply(new SingleConfigCode<IiopService>() {
                        public Object run(IiopService param)
                                throws PropertyVetoException, TransactionFailure {
                            SslClientConfig newSslClientCfg =
                                    param.createChild(SslClientConfig.class);
                            Ssl newSsl = newSslClientCfg.createChild(Ssl.class);
                            command.populateSslElement(newSsl);
                            newSslClientCfg.setSsl(newSsl);
                            param.setSslClientConfig(newSslClientCfg);
                            return newSsl;
                        }
View Full Code Here

            throw new IllegalStateException("Can not initialize IOStrategy: " + strategy + ". Error: " + e);
        }
    }

    private static Ssl getSsl(Protocol protocol) {
        Ssl ssl = protocol.getSsl();
        if (ssl == null) {
            ssl = (Ssl) DefaultProxy.createDummyProxy(protocol, Ssl.class);
        }
        return ssl;
    }
View Full Code Here

                                "Network Listener named {0} does not exist.  Creating or using the named protocol element instead.",
                                command.listenerId));
                httpProtocol = command.findOrCreateProtocol(command.listenerId);
            } else {
                httpProtocol = listener.findHttpProtocol();
                Ssl ssl = httpProtocol.getSsl();
                if (ssl != null) {
                    report.setMessage(localStrings.getLocalString("create.ssl.http.alreadyExists",
                        "Network Listener named {0} to which this ssl element is being added already has an ssl element.",
                        command.listenerId));
                    report.setActionExitCode(ActionReport.ExitCode.FAILURE);
                    return;
                }
            }
            ConfigSupport.apply(new SingleConfigCode<Protocol>() {
                        public Object run(Protocol param) throws TransactionFailure {
                            Ssl newSsl = param.createChild(Ssl.class);
                            command.populateSslElement(newSsl);
                            param.setSsl(newSsl);
                            return newSsl;
                        }
                    }, httpProtocol);
View Full Code Here

                                MessageFormat.format(
                                        CREATE_SSL_HTTP_NOT_FOUND, command.listenerId)));
                httpProtocol = command.findOrCreateProtocol(command.listenerId);
            } else {
                httpProtocol = listener.findHttpProtocol();
                Ssl ssl = httpProtocol.getSsl();
                if (ssl != null) {
                    report.setMessage(
                            WebContainer.rb.getString(
                                    MessageFormat.format(
                                            CREATE_SSL_HTTP_ALREADY_EXISTS, command.listenerId)));
                    report.setActionExitCode(ActionReport.ExitCode.FAILURE);
                    return;
                }
            }
            ConfigSupport.apply(new SingleConfigCode<Protocol>() {
                        public Object run(Protocol param) throws TransactionFailure {
                            Ssl newSsl = param.createChild(Ssl.class);
                            command.populateSslElement(newSsl);
                            param.setSsl(newSsl);
                            return newSsl;
                        }
                    }, httpProtocol);
View Full Code Here

         *
         */
         final Config serverConfig;
         final NetworkConfig nc;
         final Protocol p;
         final Ssl ssl ;
         if ((serverConfig = configs.getConfigByName(SecureAdminUpgradeHelper.DAS_CONFIG_NAME)) == null) {
             return false;
         }

         if ((nc = serverConfig.getNetworkConfig()) == null) {
View Full Code Here

        }
        try {
            ConfigSupport.apply(new SingleConfigCode<JmxConnector>() {
                public Object run(JmxConnector param)
                    throws PropertyVetoException, TransactionFailure {
                    Ssl newSsl = param.createChild(Ssl.class);
                    populateSslElement(newSsl);
                    param.setSsl(newSsl);
                    return newSsl;
                }
            }, jmxConnector);
View Full Code Here

            throw new IllegalStateException("Can not initialize IOStrategy: " + strategy + ". Error: " + e);
        }
    }

    private static Ssl getSsl(Protocol protocol) {
        Ssl ssl = protocol.getSsl();
        if (ssl == null) {
            ssl = (Ssl) DefaultProxy.createDummyProxy(protocol, Ssl.class);
        }
        return ssl;
    }
View Full Code Here

                report.setActionExitCode(ActionReport.ExitCode.FAILURE);
                return;
            } else {
                ConfigSupport.apply(new SingleConfigCode<Protocol>() {
                                    public Object run(Protocol param) throws TransactionFailure {
                                        Ssl newSsl = param.createChild(Ssl.class);
                                        param.setSecurityEnabled("true");
                                        command.populateSslElement(newSsl);
                                        param.setSsl(newSsl);
                                        return newSsl;
                                    }
View Full Code Here

TOP

Related Classes of org.glassfish.grizzly.config.dom.Ssl

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.