Package org.noear.solon.server.vertx
Class VxHttpServerComb
java.lang.Object
org.noear.solon.server.vertx.VxHttpServerComb
- All Implemented Interfaces:
HttpServerConfigure,ServerLifecycle,HttpServerConfigure,ServerLifecycle
- Since:
- 2.9
- Author:
- noear
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.noear.solon.core.AppContextprotected final HttpServerProps -
Constructor Summary
ConstructorsConstructorDescriptionVxHttpServerComb(HttpServerProps props, org.noear.solon.core.AppContext context) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHttpPort(int port) 添加 HttpPort(当 ssl 时,可再开个 http 端口)voidenableHttp2(boolean enable) voidenableSsl(boolean enable, SSLContext sslContext) voidenableWebSocket(boolean enableWebSocket) booleanisSecure()voidsetExecutor(Executor executor) voidsetHandler(org.noear.solon.core.handle.Handler handler) voidvoidstop()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.noear.solon.server.http.HttpServerConfigure
enableDebug, enableSsl, isSupportedHttp2
-
Field Details
-
context
protected final org.noear.solon.core.AppContext context -
props
-
-
Constructor Details
-
VxHttpServerComb
-
-
Method Details
-
enableSsl
- Specified by:
enableSslin interfaceHttpServerConfigure- Specified by:
enableSslin interfaceHttpServerConfigure
-
enableHttp2
public void enableHttp2(boolean enable) - Specified by:
enableHttp2in interfaceHttpServerConfigure- Specified by:
enableHttp2in interfaceHttpServerConfigure
-
addHttpPort
public void addHttpPort(int port) 添加 HttpPort(当 ssl 时,可再开个 http 端口)- Specified by:
addHttpPortin interfaceHttpServerConfigure- Specified by:
addHttpPortin interfaceHttpServerConfigure
-
setHandler
public void setHandler(org.noear.solon.core.handle.Handler handler) -
setExecutor
- Specified by:
setExecutorin interfaceHttpServerConfigure- Specified by:
setExecutorin interfaceHttpServerConfigure
-
enableWebSocket
public void enableWebSocket(boolean enableWebSocket) -
isSecure
public boolean isSecure() -
start
- Specified by:
startin interfaceServerLifecycle- Specified by:
startin interfaceServerLifecycle- Throws:
Throwable
-
stop
- Specified by:
stopin interfaceServerLifecycle- Specified by:
stopin interfaceServerLifecycle- Throws:
Throwable
-