All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.opsbears.webcomponents.webserver.WebServerConfiguration Maven / Gradle / Ivy

The newest version!
package com.opsbears.webcomponents.webserver;

import com.opsbears.webcomponents.net.IPAddressPortPair;

import javax.annotation.ParametersAreNonnullByDefault;
import java.util.Collection;

/**
 * The webserver configuration standardizes the way webservers are configured. It contains 4 things:
 *
 */
@ParametersAreNonnullByDefault
public class WebServerConfiguration {
    private final Collection plainTextListen;
    private final Collection sslListen;
    private final Collection sslProviders;
    private final WebRequestHandler webRequestHandler;

    public WebServerConfiguration(
        Collection plainTextListen,
        Collection sslListen,
        Collection sslProviders,
        WebRequestHandler webRequestHandler
    ) {
        this.plainTextListen = plainTextListen;
        this.sslListen = sslListen;
        this.sslProviders = sslProviders;
        this.webRequestHandler = webRequestHandler;
    }

    public Collection getPlainTextListen() {
        return plainTextListen;
    }

    public Collection getSslListen() {
        return sslListen;
    }

    public Collection getSslProviders() {
        return sslProviders;
    }

    public WebRequestHandler getWebRequestHandler() {
        return webRequestHandler;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy