public class WebServers extends Object
| 构造器和说明 |
|---|
WebServers() |
| 限定符和类型 | 方法和说明 |
|---|---|
static WebServer |
createWebServer(Executor executor,
int port)
Returns a new
WebServer object, which runs on the provided port
and adds the executor to the List of executor services to be called when
the server is running. |
static WebServer |
createWebServer(Executor executor,
SocketAddress socketAddress,
URI publicUri)
Returns a new
WebServer object, adding the executor to the list
of executor services, running on the stated factory address and accessible
from the provided public URI. |
static WebServer |
createWebServer(int port)
Returns a new
WebServer object, which runs on the provided port. |
public static WebServer createWebServer(int port)
WebServer object, which runs on the provided port.port - WebServer objectNettyWebServerpublic static WebServer createWebServer(Executor executor, int port)
WebServer object, which runs on the provided port
and adds the executor to the List of executor services to be called when
the server is running.executor - Since Webbit is designed to be a single threaded non-blocking server,port - WebServer objectNettyWebServerpublic static WebServer createWebServer(Executor executor, SocketAddress socketAddress, URI publicUri)
WebServer object, adding the executor to the list
of executor services, running on the stated factory address and accessible
from the provided public URI.executor - Since Webbit is designed to be a single threaded non-blocking server,socketAddress - publicUri - WebServer objectNettyWebServerCopyright © 2014. All rights reserved.