| Package | Description |
|---|---|
| org.nutz.plugins.undertow |
| Modifier and Type | Method and Description |
|---|---|
static WebConfig |
WebConfig.NewByArgs(String[] args)
通过命令行参数初始化
|
static WebConfig |
WebConfig.NewByMap(org.nutz.lang.util.NutMap map)
通过 map 参数初始化
|
static WebConfig |
WebConfig.NewByProperties(String configName)
从指定的配置文件参数初始化
|
WebConfig |
WebConfig.setContextPath(String contextPath) |
WebConfig |
WebConfig.setIp(String ip) |
WebConfig |
WebConfig.setMainModules(String mainModules) |
WebConfig |
WebConfig.setPort(int port) |
WebConfig |
WebConfig.setRoot(String root) |
WebConfig |
WebConfig.setRunmode(String runmode) |
WebConfig |
WebConfig.setSession(int session) |
WebConfig |
WebConfig.setThreadIo(Integer threadIo) |
WebConfig |
WebConfig.setThreadWorker(Integer threadWorker) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
WebLauncher.addDefaultFilter(io.undertow.servlet.api.DeploymentInfo servletBuilder,
WebConfig conf)
增加缺省的 filter
NutFilter.class
ResourceManager
|
static void |
WebLauncher.start(WebConfig conf)
直接指定运行参数方式启动
|
static void |
WebLauncher.start(WebConfig conf,
io.undertow.Undertow.Builder builder) |
static void |
WebLauncher.start(WebConfig conf,
io.undertow.Undertow.Builder builder,
io.undertow.servlet.api.DeploymentInfo servletBuilder) |
Copyright © 2017. All rights reserved.