org.webpieces.frontend2.api.ServerSocketInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http-frontend2 Show documentation
Show all versions of http-frontend2 Show documentation
Create a webserver with this library in just 3 lines of code. just register your HttpRequestListener and it feeds you a FrontendSocket that you write HttpResponses to
package org.webpieces.frontend2.api;
import java.net.InetSocketAddress;
public class ServerSocketInfo {
private InetSocketAddress localBoundAddress;
private boolean isBackendSocket;
public ServerSocketInfo(boolean isBackendSocket) {
this.isBackendSocket = isBackendSocket;
}
public void setServerSocketAddress(InetSocketAddress localAddr) {
this.localBoundAddress = localAddr;
}
public boolean isBackendSocket() {
return isBackendSocket;
}
public InetSocketAddress getLocalBoundAddress() {
return localBoundAddress;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy