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

org.webbitserver.WebServers Maven / Gradle / Ivy

There is a newer version: 0.4.15
Show newest version
package org.webbitserver;

import org.webbitserver.netty.NettyWebServer;

import java.net.SocketAddress;
import java.net.URI;
import java.util.concurrent.Executor;

public class WebServers {

    public static WebServer createWebServer(int port) {
        return new NettyWebServer(port);
    }

    public static WebServer createWebServer(Executor executor, int port) {
        return new NettyWebServer(executor, port);
    }

    public static WebServer createWebServer(Executor executor, SocketAddress socketAddress, URI publicUri) {
        return new NettyWebServer(executor, socketAddress, publicUri);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy