@RestController @RequestMapping(value="/node/tomcat/") @Feature(cls=TOMCAT) @SystemPermission public class TomcatManageController extends BaseServerController
Modifier and Type | Field and Description |
---|---|
static String |
TOMCAT_URL |
NODE_ID, nodeService
Constructor and Description |
---|
TomcatManageController() |
Modifier and Type | Method and Description |
---|---|
String |
delete()
删除tomcat
|
String |
deleteFile()
删除文件
|
void |
download()
下载文件
|
String |
getFileList()
查询文件列表
|
String |
getStatus()
查询tomcat状态
|
String |
getTomcatProject(String id)
查询tomcat的项目
|
String |
restart()
重启tomcat
|
String |
save(String id)
保存Tomcat信息
|
String |
start()
启动tomcat
|
String |
stop()
停止tomcat
|
String |
tomcatList() |
String |
tomcatProjectManage()
tomcat项目管理
|
String |
upload()
上传文件
|
String |
uploadWar()
上传War包
|
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 static final String TOMCAT_URL
@RequestMapping(value="list", method=POST, produces="application/json") @ResponseBody @Feature(method=LIST) public String tomcatList()
@RequestMapping(value="getTomcatProject", method=POST, produces="application/json") @Feature(method=LIST) public String getTomcatProject(String id)
id
- id@RequestMapping(value="getTomcatStatus", method=POST, produces="application/json") @Feature(method=LIST) public String getStatus()
@RequestMapping(value="save", method=POST, produces="text/html") @Feature(method=EDIT) public String save(String id)
id
- tomcat的id,如果id非空则更新,如果id是空则保存@RequestMapping(value="delete", method=POST, produces="text/html") @Feature(method=DEL) public String delete()
@RequestMapping(value="tomcatProjectManage", method=POST, produces="text/html") @Feature(method=EXECUTE) public String tomcatProjectManage()
@RequestMapping(value="start", method=POST, produces="text/html") @Feature(method=EXECUTE) public String start()
@RequestMapping(value="restart", method=POST, produces="text/html") @Feature(method=EXECUTE) public String restart()
@RequestMapping(value="stop", method=POST, produces="text/html") @Feature(method=EXECUTE) public String stop()
@RequestMapping(value="getFileList", method=POST, produces="text/html") @Feature(cls=TOMCAT_FILE, method=LIST) public String getFileList()
@RequestMapping(value="upload", method=POST, produces="application/json") @Feature(cls=TOMCAT_FILE, method=UPLOAD) public String upload()
@RequestMapping(value="uploadWar", method=POST, produces="application/json") @Feature(cls=TOMCAT_FILE, method=UPLOAD) public String uploadWar()
@RequestMapping(value="download", method=GET) @Feature(cls=TOMCAT_FILE, method=DOWNLOAD) public void download()
Copyright © 2017–2022. All rights reserved.