com.devops4j.embedded.httpserver.impl.DefaultHttpServerProvider Maven / Gradle / Ivy
package com.devops4j.embedded.httpserver.impl;
import com.devops4j.embedded.httpserver.HttpServer;
import com.devops4j.embedded.httpserver.HttpsServer;
import com.devops4j.embedded.httpserver.spi.HttpServerProvider;
import java.net.*;
import java.io.*;
public class DefaultHttpServerProvider extends HttpServerProvider {
public HttpServer createHttpServer (InetSocketAddress addr, int backlog) throws IOException {
return new HttpServerImpl(addr, backlog);
}
public HttpsServer createHttpsServer (InetSocketAddress addr, int backlog) throws IOException {
return new HttpsServerImpl(addr, backlog);
}
}