com.opsbears.webcomponents.webserver.WebServerConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webserver Show documentation
Show all versions of webserver Show documentation
Interfaces for creating a webserver in the OWC Ecosystem
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;
}
}