public class WebConfig extends Object
| Constructor and Description |
|---|
WebConfig() |
| Modifier and Type | Method and Description |
|---|---|
String |
getContextPath() |
String |
getIp() |
String |
getMainModules() |
int |
getPort() |
String |
getRoot() |
String |
getRunmode() |
int |
getSession() |
Integer |
getThreadIo() |
Integer |
getThreadWorker() |
static WebConfig |
NewByArgs(String[] args)
通过命令行参数初始化
|
static WebConfig |
NewByMap(org.nutz.lang.util.NutMap map)
通过 map 参数初始化
|
static WebConfig |
NewByProperties(String configName)
从指定的配置文件参数初始化
|
WebConfig |
setContextPath(String contextPath) |
WebConfig |
setIp(String ip) |
WebConfig |
setMainModules(String mainModules) |
WebConfig |
setPort(int port) |
WebConfig |
setRoot(String root) |
WebConfig |
setRunmode(String runmode) |
WebConfig |
setSession(int session) |
WebConfig |
setThreadIo(Integer threadIo) |
WebConfig |
setThreadWorker(Integer threadWorker) |
public static WebConfig NewByProperties(String configName)
configName - public static WebConfig NewByMap(org.nutz.lang.util.NutMap map)
map - public String getIp()
public int getPort()
public WebConfig setPort(int port)
public String getContextPath()
public String getRoot()
public String getMainModules()
public int getSession()
public WebConfig setSession(int session)
public String getRunmode()
public Integer getThreadIo()
public Integer getThreadWorker()
Copyright © 2017. All rights reserved.