@Controller @RequestMapping(value="node/ssh") @Feature(cls=SSH) public class SshController extends BaseServerController
nodeService
Constructor and Description |
---|
SshController() |
Modifier and Type | Method and Description |
---|---|
String |
edit(String id) |
String |
list() |
String |
listData() |
String |
save(String name,
String host,
String user,
String password,
int port,
String charset,
String fileDirs,
String id,
String type) |
String |
terminal(String id) |
doPage, getNode, getUser, getUserModel, remove, 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
@RequestMapping(value="list.html", method=GET, produces="text/html") @Feature(method=LIST) public String list()
@RequestMapping(value="list_data.json", method=POST, produces="application/json;charset=UTF-8") @ResponseBody @Feature(method=LIST) public String listData()
@RequestMapping(value="save.json", method=POST, produces="application/json;charset=UTF-8") @OptLog(value=EditSsh) @ResponseBody @Feature(method=EDIT) public String save(@ValidatorItem(value=NOT_BLANK,msg="ssh\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a") String name, @ValidatorItem(value=NOT_BLANK,msg="host\u4e0d\u80fd\u4e3a\u7a7a") String host, @ValidatorItem(value=NOT_BLANK,msg="user\u4e0d\u80fd\u4e3a\u7a7a") String user, @ValidatorItem(value=NOT_BLANK,msg="password\u4e0d\u80fd\u4e3a\u7a7a") String password, @ValidatorItem(value=POSITIVE_INTEGER,msg="port\u9519\u8bef") int port, String charset, String fileDirs, String id, String type) throws Exception
Exception
@RequestMapping(value="edit.html", method=GET, produces="text/html") @Feature(method=EDIT) public String edit(String id)
Copyright © 2017–2019. All rights reserved.