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