org.webbitserver.WebServers Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webbit Show documentation
Show all versions of webbit Show documentation
A Java event based WebSocket and HTTP server
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);
}
}