public class JlHttpServerComb extends Object implements HttpServerConfigure, ServerLifecycle
| 限定符和类型 | 字段和说明 |
|---|---|
protected Set<Integer> |
addHttpPorts |
protected boolean |
enableSsl |
protected List<JlHttpServer> |
servers |
protected SSLContext |
sslContext |
| 构造器和说明 |
|---|
JlHttpServerComb() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addHttpPort(int port)
添加 HttpPort(当 ssl 时,可再开个 http 端口)
|
void |
enableSsl(boolean enable,
SSLContext sslContext)
是否允许Ssl
|
boolean |
isSecure() |
void |
setExecutor(Executor executor) |
void |
setHandler(org.noear.solon.core.handle.Handler handler) |
void |
start(String host,
int port) |
void |
stop() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitenableDebug, enableHttp2, enableSsl, isSupportedHttp2protected boolean enableSsl
protected SSLContext sslContext
protected List<JlHttpServer> servers
public void enableSsl(boolean enable,
SSLContext sslContext)
enableSsl 在接口中 HttpServerConfigurepublic void addHttpPort(int port)
addHttpPort 在接口中 HttpServerConfigurepublic void setHandler(org.noear.solon.core.handle.Handler handler)
public void setExecutor(Executor executor)
setExecutor 在接口中 HttpServerConfigurepublic boolean isSecure()
public void start(String host, int port) throws Throwable
start 在接口中 ServerLifecycleThrowablepublic void stop()
throws Throwable
stop 在接口中 ServerLifecycleThrowableCopyright © 2024. All rights reserved.