@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, getProjectInfoModel, getUserName, getWorkspaceId, tryGetProjectInfoModel, tryGetProjectInfoModelcheckPathSafe, pathSafeclearResources, createMultipart, getCookieValue, getHeader, getHeaders, getIp, getMultiRequest, getObject, getParameter, getParameter, getParameterInt, getParameterInt, getParameterLong, getParameterLong, getParameters, getParametersMap, getRefererParameter, getUnescapeParameter, getUnescapeParameter, getUnescapeParameters, getXssParameter, getXssParameter, getXssParameters, hasFile, resetInfogetApplication, getAttribute, getClientIP, getHeaderMapValues, getRequest, getRequestAttributes, getResponse, getSession, getSessionAttribute, getSessionAttributeObj, removeSessionAttribute, setAttribute, setSessionAttribute, tryGetRequestAttributes@RequestMapping(value="getTomcatProjectList",
method=POST,
produces="application/json")
public String getTomcatProjectList(String id)
id - 项目id@RequestMapping(value="getTomcatStatus",
method=POST,
produces="application/json")
public String getStatus(String id)
id - tomcat的id@RequestMapping(value="start",
method=POST,
produces="application/json")
public String start(String id)
id - tomcat id@RequestMapping(value="stop",
method=POST,
produces="application/json")
public String stop(String id)
id - tomcat id@RequestMapping(value="restart",
method=POST,
produces="application/json")
public String restart(String id)
id - tomcat id@RequestMapping(value="tomcatProjectManage",
method=POST,
produces="application/json")
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")
public String getFileList(String id,
String path)
id - tomcat idpath - 项目路径@RequestMapping(value="upload",
method=POST,
produces="application/json")
public String upload(String id,
String path)
id - tomcat idpath - 文件路径@RequestMapping(value="uploadWar",
method=POST,
produces="application/json")
public String uploadWar(String id)
id - tomcat id@RequestMapping(value="deleteFile",
method=POST,
produces="application/json")
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–2022. All rights reserved.