@RestController @RequestMapping(value="/tomcat/") public class TomcatManageController extends BaseAgentController
projectInfoService
Constructor and Description |
---|
TomcatManageController() |
Modifier and Type | Method and Description |
---|---|
String |
deleteFile(String id,
String path,
String filename)
删除文件
|
String |
download(String id,
String path,
String filename)
下载文件
|
String |
getFileList(String id,
String path)
获取项目文件列表
|
String |
getStatus(String id)
查询tomcat状态
|
String |
getTomcatProjectList(String id)
列出所有的tomcat项目列表
|
String |
logList(String id)
获取tomcat 日志列表
|
String |
restart(String id)
重启tomcat
|
String |
start(String id)
启动tomcat
|
String |
stop(String id)
删除tomcat
|
String |
tomcatProjectManage(String id,
String path,
String op)
tomcat项目管理
|
String |
upload(String id,
String path)
上传文件
|
String |
uploadWar(String id)
上传war文件
|
getNowUserName, getProjectInfoModel, getUserName, tryGetProjectInfoModel
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, resetInfo
getApplication, getAttribute, getClientIP, getHeaderMapValues, getRequest, getRequestAttributes, getResponse, getSession, getSessionAttribute, getSessionAttributeObj, removeSessionAttribute, setAttribute, setSessionAttribute, tryGetRequestAttributes
@RequestMapping(value="getTomcatProjectList", method=POST, produces="application/json;charset=UTF-8") public String getTomcatProjectList(String id)
id
- 项目id@RequestMapping(value="getTomcatStatus", method=POST, produces="application/json;charset=UTF-8") public String getStatus(String id)
id
- tomcat的id@RequestMapping(value="start", method=POST, produces="application/json;charset=UTF-8") public String start(String id)
id
- tomcat id@RequestMapping(value="stop", method=POST, produces="application/json;charset=UTF-8") public String stop(String id)
id
- tomcat id@RequestMapping(value="restart", method=POST, produces="application/json;charset=UTF-8") public String restart(String id)
id
- tomcat id@RequestMapping(value="tomcatProjectManage", method=POST, produces="application/json;charset=UTF-8") public String tomcatProjectManage(String id, String path, @ValidatorItem(value=NOT_BLANK,msg="\u64cd\u4f5c\u9879\u4e0d\u5bf9") String op)
id
- tomcat idpath
- 项目路径op
- 执行的操作@RequestMapping(value="getFileList", method=POST, produces="application/json;charset=UTF-8") public String getFileList(String id, String path)
id
- tomcat idpath
- 项目路径@RequestMapping(value="upload", method=POST, produces="application/json;charset=UTF-8") public String upload(String id, String path)
id
- tomcat idpath
- 文件路径@RequestMapping(value="uploadWar", method=POST, produces="application/json;charset=UTF-8") public String uploadWar(String id)
id
- tomcat id@RequestMapping(value="deleteFile", method=POST, produces="application/json;charset=UTF-8") public String deleteFile(String id, String path, String filename)
id
- tomcat idfilename
- 文件名path
- tomcat路径@RequestMapping(value="download", method=GET) public String download(String id, String path, String filename)
id
- tomcat idfilename
- 文件名path
- tomcat路径Copyright © 2017–2019. All rights reserved.