@RestController @RequestMapping(value="node/ssh") @Feature(cls=SSH_FILE) public class SshFileController extends BaseServerController
NODE_ID, nodeService
Constructor and Description |
---|
SshFileController(SshService sshService) |
Modifier and Type | Method and Description |
---|---|
String |
delete(String id,
String path,
String name) |
void |
download(String id,
String path,
String name) |
String |
listData(String id,
String path,
String children) |
String |
newFileFolder(String id,
String path,
String name,
String unFolder) |
String |
readFileData(String id,
String path,
String children) |
String |
rename(String id,
String path,
String name,
String newname) |
String |
rootFileList(String id)
根据 id 获取 fileDirs 目录集合
|
String |
updateFileData(String id,
String path,
String children,
String content) |
String |
upload(String id,
String path,
String name,
String unzip) |
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 SshFileController(SshService sshService)
@RequestMapping(value="download.html", method=GET) @Feature(method=DOWNLOAD) public void download(String id, String path, String name) throws IOException
IOException
@RequestMapping(value="root_file_data.json", method=POST, produces="application/json") @Feature(method=LIST) public String rootFileList(String id)
id
- ssh id@RequestMapping(value="list_file_data.json", method=POST, produces="application/json") @Feature(method=LIST) public String listData(String id, String path, String children) throws com.jcraft.jsch.SftpException
com.jcraft.jsch.SftpException
@RequestMapping(value="read_file_data.json", method=POST, produces="application/json") @Feature(method=LIST) public String readFileData(String id, String path, String children)
@RequestMapping(value="update_file_data.json", method=POST, produces="application/json") @Feature(method=EDIT) public String updateFileData(String id, String path, String children, String content)
@RequestMapping(value="delete.json", method=POST, produces="application/json") @Feature(method=DEL) public String delete(String id, String path, String name)
@RequestMapping(value="rename.json", method=POST, produces="application/json") @Feature(method=EDIT) public String rename(String id, String path, String name, String newname)
@RequestMapping(value="upload", method=POST, produces="application/json") @Feature(method=UPLOAD) public String upload(String id, String path, String name, String unzip)
@RequestMapping(value="new_file_folder.json", method=POST, produces="application/json") public String newFileFolder(String id, @ValidatorItem String path, @ValidatorItem String name, String unFolder) throws IOException
IOException
Copyright © 2017–2022. All rights reserved.