public class UndertowServer extends Object implements ServerLifecycle
| 限定符和类型 | 字段和说明 |
|---|---|
protected io.undertow.Undertow |
_server |
protected Set<Integer> |
addHttpPorts |
protected boolean |
enableHttp2 |
protected HttpServerProps |
props |
protected SslConfig |
sslConfig |
| 构造器和说明 |
|---|
UndertowServer() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addHttpPort(int port)
添加 HttpPort(当 ssl 时,可再开个 http 端口)
|
protected io.undertow.server.HttpHandler |
buildHandler() |
void |
enableHttp2(boolean enable) |
void |
enableSsl(boolean enable,
SSLContext sslContext)
是否允许Ssl
|
HttpServerProps |
getProps() |
protected String |
getResourceRoot() |
protected URL |
getRootPath() |
protected io.undertow.servlet.api.DeploymentInfo |
initDeploymentInfo() |
boolean |
isSecure() |
boolean |
isSupportedHttp2() |
void |
setExecutor(Executor executor) |
protected void |
setup(org.noear.solon.SolonApp app,
String host,
int port) |
void |
start(String host,
int port) |
void |
stop() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallowSsl, enableDebug, enableSslprotected io.undertow.Undertow _server
protected HttpServerProps props
protected SslConfig sslConfig
protected boolean enableHttp2
public boolean isSecure()
public void start(String host, int port)
start 在接口中 ServerLifecyclepublic void stop()
throws Throwable
stop 在接口中 ServerLifecycleThrowableprotected void setup(org.noear.solon.SolonApp app,
String host,
int port)
throws Throwable
Throwablepublic void enableSsl(boolean enable,
@Nullable
SSLContext sslContext)
enableSsl 在接口中 HttpServerConfigurepublic boolean isSupportedHttp2()
isSupportedHttp2 在接口中 HttpServerConfigurepublic void enableHttp2(boolean enable)
enableHttp2 在接口中 HttpServerConfigurepublic void addHttpPort(int port)
addHttpPort 在接口中 HttpServerConfigurepublic void setExecutor(Executor executor)
setExecutor 在接口中 HttpServerConfigurepublic HttpServerProps getProps()
protected io.undertow.servlet.api.DeploymentInfo initDeploymentInfo()
protected String getResourceRoot() throws FileNotFoundException
protected URL getRootPath()
Copyright © 2024. All rights reserved.