@RestController @RequestMapping(value="/outgiving") @Feature(cls=OUTGIVING) public class OutGivingProjectController extends BaseServerController
NODE_ID, nodeService| Constructor and Description |
|---|
OutGivingProjectController(OutGivingServer outGivingServer,
ProjectInfoCacheService projectInfoCacheService,
OutGivingWhitelistService outGivingWhitelistService) |
| Modifier and Type | Method and Description |
|---|---|
String |
getItemData(String id) |
String |
getProjectStatus() |
String |
remoteDownload(String id,
String afterOpt,
String clearOld,
String url,
String autoUnzip)
远程下载节点分发文件
|
String |
upload(String id,
String afterOpt,
String clearOld,
String autoUnzip)
节点分发文件
|
checkCron, getNode, getUser, getUserByThreadLocal, getUserModel, removeAll, removeEmpty, resetInfo, resetInfo, tryGetNodecheckPathSafe, pathSafeclearResources, createMultipart, getCookieValue, getHeader, getHeaders, getIp, getMultiRequest, getObject, getParameter, getParameter, getParameterInt, getParameterInt, getParameterLong, getParameterLong, getParameters, getParametersMap, getRefererParameter, getUnescapeParameter, getUnescapeParameter, getUnescapeParameters, getXssParameter, getXssParameter, getXssParameters, hasFilegetApplication, getAttribute, getClientIP, getHeaderMapValues, getRequest, getRequestAttributes, getResponse, getSession, getSessionAttribute, getSessionAttributeObj, removeSessionAttribute, setAttribute, setSessionAttribute, tryGetRequestAttributespublic OutGivingProjectController(OutGivingServer outGivingServer, ProjectInfoCacheService projectInfoCacheService, OutGivingWhitelistService outGivingWhitelistService)
@RequestMapping(value="getProjectStatus",
method=POST,
produces="application/json")
public String getProjectStatus()
@RequestMapping(value="getItemData.json",
method=POST,
produces="application/json")
public String getItemData(@ValidatorItem(value=NOT_BLANK,msg="id error")
String id)
@RequestMapping(value="upload",
method=POST,
produces="application/json")
@Feature(method=UPLOAD)
public String upload(String id,
String afterOpt,
String clearOld,
String autoUnzip)
throws IOException
id - 分发idafterOpt - 之后的操作autoUnzip - 是否自动解压clearOld - 清空发布IOException - IOCopyright © 2017–2022. All rights reserved.