@Controller(value="baseUploadController")
@RequestMapping(value="/rest/upload")
public class UploadController
extends bap.core.controller.BaseController
| Constructor and Description |
|---|
UploadController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<java.lang.String> |
cancel(java.lang.String dbid)
功能描述: 删除
|
org.springframework.http.ResponseEntity<java.lang.String> |
check_download(java.lang.String dbid,
javax.servlet.http.HttpServletRequest request)
功能描述: 检查文件是否存在
|
void |
download(java.lang.String dbid,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request)
功能描述: 下载
|
org.springframework.http.ResponseEntity<java.lang.String> |
list_data(java.lang.String className,
java.lang.String fieldName,
java.lang.String entityId)
根据业务实体信息获取相关附件
|
void |
previewImg(java.lang.String imgId,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request)
功能描述: 文件预览
|
void |
upload(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
功能描述: 上传
|
@RequestMapping(value="/",
method=POST)
public void upload(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
request - 请求response - 响应java.lang.Exception@RequestMapping(value="/cancel/{dbid}")
public org.springframework.http.ResponseEntity<java.lang.String> cancel(@PathVariable
java.lang.String dbid)
dbid - 附件IDresponse - java.lang.Exception@RequestMapping(value="/download/{dbid}")
public void download(@PathVariable
java.lang.String dbid,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request)
throws java.lang.Exception
dbid - 附件IDresponse - java.lang.Exception@RequestMapping(value="/check_download/{dbid}")
public org.springframework.http.ResponseEntity<java.lang.String> check_download(@PathVariable
java.lang.String dbid,
javax.servlet.http.HttpServletRequest request)
dbid - 附件IDpw - java.lang.Exception@RequestMapping(value="/previewImg/{imgId}")
public void previewImg(@PathVariable
java.lang.String imgId,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request)
throws java.lang.Exception
imgId - 图片idresponse - java.lang.Exception@RequestMapping(value="/{className}/{fieldName}/{entityId}")
public org.springframework.http.ResponseEntity<java.lang.String> list_data(@PathVariable
java.lang.String className,
@PathVariable
java.lang.String fieldName,
@PathVariable
java.lang.String entityId)
className - 类名全称fieldName - 字段名称entityId -