Package org.noear.solon.server.grizzly
Class GyHttpServer
java.lang.Object
org.noear.solon.server.grizzly.GyHttpServer
- All Implemented Interfaces:
HttpServerConfigure,ServerLifecycle,HttpServerConfigure,ServerLifecycle
- Since:
- 3.6
- Author:
- noear
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHttpPort(int port) 添加 HttpPort(当 ssl 时,可再开个 http 端口)protected voiddoAddHetworkListener(String host, int port, boolean isMain) voidenableHttp2(boolean enable) voidenableSsl(boolean enable, SSLContext sslContext) 是否允许SslvoidenableWebSocket(boolean enableWebSocket) getProps()booleanbooleanisSecure()booleanvoidsetExecutor(Executor executor) voidsetHandler(org.noear.solon.core.handle.Handler handler) protected voidvoidvoidstop()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
-
Constructor Details
-
GyHttpServer
-
-
Method Details
-
getProps
-
setHandler
public void setHandler(org.noear.solon.core.handle.Handler handler) -
enableSsl
是否允许Ssl- Specified by:
enableSslin interfaceHttpServerConfigure- Specified by:
enableSslin interfaceHttpServerConfigure
-
isSupportedHttp2
public boolean isSupportedHttp2()- Specified by:
isSupportedHttp2in interfaceHttpServerConfigure- Specified by:
isSupportedHttp2in interfaceHttpServerConfigure
-
enableHttp2
public void enableHttp2(boolean enable) - Specified by:
enableHttp2in interfaceHttpServerConfigure- Specified by:
enableHttp2in interfaceHttpServerConfigure
-
isEnableHttp2
public boolean isEnableHttp2() -
addHttpPort
public void addHttpPort(int port) 添加 HttpPort(当 ssl 时,可再开个 http 端口)- Specified by:
addHttpPortin interfaceHttpServerConfigure- Specified by:
addHttpPortin interfaceHttpServerConfigure
-
setExecutor
- Specified by:
setExecutorin interfaceHttpServerConfigure- Specified by:
setExecutorin interfaceHttpServerConfigure
-
isSecure
public boolean isSecure() -
enableWebSocket
public void enableWebSocket(boolean enableWebSocket) -
start
- Specified by:
startin interfaceServerLifecycle- Specified by:
startin interfaceServerLifecycle- Throws:
Throwable
-
setup
- Throws:
Throwable
-
doAddHetworkListener
- Throws:
IOException
-
stop
- Specified by:
stopin interfaceServerLifecycle- Specified by:
stopin interfaceServerLifecycle- Throws:
Throwable
-