public class JlHttpServer extends Object implements ServerLifecycle
| 构造器和说明 |
|---|
JlHttpServer() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
enableSsl(boolean enable,
SSLContext sslContext) |
boolean |
isSecure() |
void |
setExecutor(Executor executor) |
void |
setHandler(org.noear.solon.core.handle.Handler handler) |
void |
start(String host,
int port) |
void |
stop() |
public boolean isSecure()
public void enableSsl(boolean enable,
@Nullable
SSLContext sslContext)
public 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 © 2024. All rights reserved.