org.webpieces.webserver.impl.PortConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http-webserver Show documentation
Show all versions of http-webserver Show documentation
The full webpieces server AS A library
package org.webpieces.webserver.impl;
import java.net.InetSocketAddress;
import java.util.function.Supplier;
public class PortConfiguration {
private Supplier httpAddr;
private Supplier httpsAddr;
private Supplier backendAddr;
private Supplier allowHttpsIntoHttp;
public PortConfiguration(Supplier httpAddr, Supplier httpsAddr, Supplier backendAddr, Supplier allowHttpsIntoHttp) {
this.httpAddr = httpAddr;
this.httpsAddr = httpsAddr;
this.backendAddr = backendAddr;
this.allowHttpsIntoHttp = allowHttpsIntoHttp;
}
public Supplier getHttpAddr() {
return httpAddr;
}
public Supplier getHttpsAddr() {
return httpsAddr;
}
public Supplier getBackendAddr() {
return backendAddr;
}
public Supplier getAllowHttpsIntoHttp() {
return allowHttpsIntoHttp;
}
}