public class VxHttpServer extends Object implements ServerLifecycle
| Constructor and Description |
|---|
VxHttpServer(HttpServerProps props,
org.noear.solon.core.AppContext context,
boolean allowExternalHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
enableHttp2(boolean enable) |
void |
enableSsl(boolean enable,
SSLContext sslContext) |
void |
enableWebSocket(boolean enableWebSocket) |
boolean |
isSecure() |
void |
setHandler(org.noear.solon.core.handle.Handler handler) |
void |
setWorkExecutor(Executor executor) |
void |
start(String host,
int port) |
void |
stop() |
public VxHttpServer(HttpServerProps props, org.noear.solon.core.AppContext context, boolean allowExternalHandler)
public boolean isSecure()
public void enableSsl(boolean enable,
@Nullable
SSLContext sslContext)
public void enableHttp2(boolean enable)
public void enableWebSocket(boolean enableWebSocket)
public void setHandler(org.noear.solon.core.handle.Handler handler)
public void setWorkExecutor(Executor executor)
public void start(String host, int port) throws Throwable
start in interface ServerLifecycleThrowablepublic void stop()
throws Throwable
stop in interface ServerLifecycleThrowableCopyright © 2025. All rights reserved.