@Controller
@RequestMapping(value="/{version}/attach")
public class AttachmentResource
extends java.lang.Object
构造器和说明 |
---|
AttachmentResource() |
限定符和类型 | 方法和说明 |
---|---|
Response |
downloadAttach(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version,
java.lang.String[] ids) |
Response |
exportImg(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version,
java.lang.String attachId) |
Response |
removeAttach(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version,
java.lang.String attachId) |
Response |
showImage(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version,
java.lang.String attachId,
boolean adjust,
java.lang.String format) |
void |
uploadAttach(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version,
int width,
int height,
java.lang.String fileName) |
@RequestMapping(value="/export/image/{attachId}", method=POST) @ResponseBody public Response exportImg(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version, @PathVariable(value="attachId") java.lang.String attachId) throws java.lang.Exception
java.lang.Exception
@RequestMapping(value="/download", method=POST) @ResponseBody public Response downloadAttach(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version, @RequestBody java.lang.String[] ids) throws java.lang.Exception
java.lang.Exception
@RequestMapping(value="/upload", method=POST) @ResponseBody @LoginStatusChecker(tokenResource=COOKIE) public void uploadAttach(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version, @RequestParam(value="width") int width, @RequestParam(value="height") int height, @RequestParam(value="filename") java.lang.String fileName) throws java.lang.Exception
java.lang.Exception
@RequestMapping(value="/image/{attachId}", method=GET) @ResponseBody @LoginStatusChecker(tokenResource=COOKIE) public Response showImage(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version, @PathVariable(value="attachId") java.lang.String attachId, @RequestParam(value="adjust",required=false) boolean adjust, @RequestParam(value="format",required=false) java.lang.String format) throws java.lang.Exception
java.lang.Exception
@RequestMapping(value="/remove/{attachId}", method=DELETE) @ResponseBody public Response removeAttach(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version, @PathVariable(value="attachId") java.lang.String attachId) throws java.lang.Exception
java.lang.Exception