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

com.devops4j.embedded.httpserver.impl.DefaultHttpServerProvider Maven / Gradle / Ivy

There is a newer version: 0.0.4-alpha
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy