aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/vespa/model/container/http/ssl/SslProvider.java
blob: 1db206722aabb6cbfaa0bdcba99e60c1ff5be4b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.model.container.http.ssl;

import com.yahoo.component.ComponentId;
import com.yahoo.container.bundle.BundleInstantiationSpecification;
import com.yahoo.jdisc.http.ConnectorConfig;
import com.yahoo.osgi.provider.model.ComponentModel;
import com.yahoo.vespa.model.container.component.SimpleComponent;

import static com.yahoo.component.ComponentSpecification.fromString;

/**
 * @author bjorncs
 */
public abstract class SslProvider extends SimpleComponent {

    public SslProvider(String componentIdPrefix, String serverName, String className, String bundleName) {
        super(new ComponentModel(
                new BundleInstantiationSpecification(new ComponentId(componentIdPrefix+serverName),
                        fromString(className),
                        fromString(bundleName))));
    }

    public abstract void amendConnectorConfig(ConnectorConfig.Builder builder);
}