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

koncept.http.LegacyModHttpServerProvider Maven / Gradle / Ivy

The newest version!
package koncept.http;

import java.io.IOException;
import java.net.InetSocketAddress;

import koncept.http.server.ConfigurableHttpServer;
import koncept.http.server.ConfigurableHttpServerProvider;
import koncept.http.server.ConfigurableHttpsServer;
import koncept.http.sun.net.httpserver.HttpServerImpl;
import koncept.http.sun.net.httpserver.HttpsServerImpl;



public class LegacyModHttpServerProvider extends ConfigurableHttpServerProvider {
	
    public ConfigurableHttpServer createHttpServer (InetSocketAddress addr, int backlog) throws IOException {
        return new HttpServerImpl (addr, backlog);
    }

    public ConfigurableHttpsServer createHttpsServer (InetSocketAddress addr, int backlog) throws IOException {
        return new HttpsServerImpl (addr, backlog);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy