@Controller @RequestMapping(value="/node/system/nginx") @Feature(cls=NGINX) @SystemPermission public class NginxController extends BaseServerController
NODE_ID, nodeService
Constructor and Description |
---|
NginxController(WhitelistDirectoryService whitelistDirectoryService) |
Modifier and Type | Method and Description |
---|---|
String |
close()
关闭nginx
|
String |
config()
获取nginx配置状态
|
String |
delete() |
String |
list()
配置列表
|
String |
loadConfig() |
String |
loadWhiteList() |
String |
open()
启动nginx
|
String |
reload() |
String |
status()
获取nginx状态
|
String |
tree()
配置列表
|
String |
updateConf()
修改nginx
|
String |
updateNgx() |
checkCron, getNode, getUser, getUserByThreadLocal, getUserModel, removeAll, removeEmpty, resetInfo, resetInfo, tryGetNode
checkPathSafe, pathSafe
clearResources, createMultipart, getCookieValue, getHeader, getHeaders, getIp, getMultiRequest, getObject, getParameter, getParameter, getParameterInt, getParameterInt, getParameterLong, getParameterLong, getParameters, getParametersMap, getRefererParameter, getUnescapeParameter, getUnescapeParameter, getUnescapeParameters, getXssParameter, getXssParameter, getXssParameters, hasFile
getApplication, getAttribute, getClientIP, getHeaderMapValues, getRequest, getRequestAttributes, getResponse, getSession, getSessionAttribute, getSessionAttributeObj, removeSessionAttribute, setAttribute, setSessionAttribute, tryGetRequestAttributes
public NginxController(WhitelistDirectoryService whitelistDirectoryService)
@RequestMapping(value="list_data.json", method=POST, produces="application/json") @ResponseBody @Feature(method=LIST) public String list()
@RequestMapping(value="tree.json", method=POST, produces="application/json") @ResponseBody @Feature(method=LIST) public String tree()
@RequestMapping(value="white-list", method=POST, produces="application/json") @ResponseBody public String loadWhiteList()
@RequestMapping(value="load-config", method=POST, produces="application/json") @ResponseBody public String loadConfig()
@RequestMapping(value="updateNgx", method=POST, produces="application/json") @ResponseBody @Feature(method=EDIT) public String updateNgx()
@RequestMapping(value="delete", method=POST, produces="application/json") @ResponseBody @Feature(method=DEL) public String delete()
@RequestMapping(value="status", method=POST, produces="application/json") @ResponseBody @Feature(method=LIST) public String status()
@RequestMapping(value="config", method=POST, produces="application/json") @ResponseBody @Feature(method=LIST) public String config()
@RequestMapping(value="open", method=POST, produces="application/json") @ResponseBody @Feature(method=EXECUTE) public String open()
@RequestMapping(value="close", method=POST, produces="application/json") @ResponseBody @Feature(method=EXECUTE) public String close()
@RequestMapping(value="updateConf", method=POST, produces="application/json") @ResponseBody @Feature(method=EDIT) public String updateConf()
Copyright © 2017–2022. All rights reserved.