/**
 *
 * Copyright 2003-2004 The Apache Software Foundation
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

package org.apache.geronimo.jetty.connector;

import org.apache.geronimo.gbean.GBeanInfo;
import org.apache.geronimo.gbean.GBeanInfoBuilder;
import org.apache.geronimo.jetty.JettyContainer;
import org.mortbay.http.SunJsseListener;

/**
 * @version $Rev$ $Date$
 */
public class HTTPSConnector extends JettyConnector {
    public HTTPSConnector(JettyContainer container) {
        super(container, new SunJsseListener());
    }

    public static final GBeanInfo GBEAN_INFO;

    static {
        GBeanInfoBuilder infoFactory = new GBeanInfoBuilder("Jetty HTTPS Connector", HTTPSConnector.class, JettyConnector.GBEAN_INFO);
        infoFactory.setConstructor(new String[]{"JettyContainer"});
        GBEAN_INFO = infoFactory.getBeanInfo();
    }

    public static GBeanInfo getGBeanInfo() {
        return GBEAN_INFO;
    }
}

@@ -943,16 +943,58 @@
 ector %7B%0A
+    private final SunJsseListener https;%0A%0A
     publ
@@ -1096,203 +1096,2166 @@
     
-%7D%0A%0A    public static final GBeanInfo GBEAN_INFO;%0A%0A    static %7B%0A        GBeanInfoBuilder infoFactory = new GBeanInfoBuilder(%22Jetty HTTPS Connector%22, HTTPSConnector.class, JettyConnector.GBEAN_INFO
+    https = (SunJsseListener)listener;%0A    %7D%0A%0A    public void setKeystore(String keystore) %7B%0A        https.setKeystore(keystore);%0A    %7D%0A%0A    public String getKeystore() %7B%0A        return https.getKeystore();%0A    %7D%0A%0A    public void setKeyPassword(String password) %7B%0A        https.setKeyPassword(password);%0A    %7D%0A%0A    public void setKeystoreProviderClass(String cls) %7B%0A        https.setKeystoreProviderClass(cls);%0A    %7D%0A%0A    public String getKeystoreProviderClass() %7B%0A        return https.getKeystoreProviderClass();%0A    %7D%0A%0A    public void setKeystoreProviderName(String cls) %7B%0A        https.setKeystoreProviderName(cls);%0A    %7D%0A%0A    public String getKeystoreProviderName() %7B%0A        return https.getKeystoreProviderName();%0A    %7D%0A%0A    public void setKeystoreType(String cls) %7B%0A        https.setKeystoreType(cls);%0A    %7D%0A%0A    public String getKeystoreType() %7B%0A        return https.getKeystoreType();%0A    %7D%0A%0A    public void setPassword(String password) %7B%0A        https.setPassword(password);%0A    %7D%0A%0A    public void setUseDefaultTrustStore(boolean use) %7B%0A        https.setUseDefaultTrustStore(use);%0A    %7D%0A%0A    public boolean getUseDefaultTrustStore() %7B%0A        return https.getUseDefaultTrustStore();%0A    %7D%0A%0A    public void setNeedClientAuth(boolean auth) %7B%0A        https.setNeedClientAuth(auth);%0A    %7D%0A%0A    public boolean getNeedClientAuth() %7B%0A        return https.getNeedClientAuth();%0A    %7D%0A%0A    public static final GBeanInfo GBEAN_INFO;%0A%0A    static %7B%0A        GBeanInfoBuilder infoFactory = new GBeanInfoBuilder(%22Jetty HTTPS Connector%22, HTTPSConnector.class, JettyConnector.GBEAN_INFO);%0A        infoFactory.addAttribute(%22keystore%22, String.class, true);%0A        infoFactory.addAttribute(%22keyPassword%22, String.class, true);%0A        infoFactory.addAttribute(%22keystoreProviderClass%22, String.class, true);%0A        infoFactory.addAttribute(%22keystoreProviderName%22, String.class, true);%0A        infoFactory.addAttribute(%22keystoreType%22, String.class, true);%0A        infoFactory.addAttribute(%22password%22, String.class, true);%0A        infoFactory.addAttribute(%22useDefaultTrustStore%22, boolean.class, true);%0A        infoFactory.addAttribute(%22needClientAuth%22, boolean.class, true
 );%0A 

Add the necessary configuration options to the HTTPSConnector so that it can actually be used