org.webpieces.frontend.api.HttpFrontendManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http-frontend Show documentation
Show all versions of http-frontend 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.frontend.api;
import org.webpieces.httpcommon.api.RequestListener;
import org.webpieces.nio.api.SSLEngineFactory;
public interface HttpFrontendManager {
HttpServer createHttpServer(FrontendConfig config, RequestListener listener);
HttpServer createHttpsServer(FrontendConfig config, RequestListener listener, SSLEngineFactory factory);
}