@Controller @RequestMapping(value="/{version}") @FunctionSupport(function=FsBI) public class FavoriteResource extends java.lang.Object
构造器和说明 |
---|
FavoriteResource() |
限定符和类型 | 方法和说明 |
---|---|
Response |
addFavoriteEntry(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version,
java.lang.String entryId) |
Response |
removeFavoriteEntry(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version,
java.lang.String entryId) |
Response |
showFavoriteEntry(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version) |
@RequestMapping(value="/favorite/entry/list", method=GET) @ResponseBody public Response showFavoriteEntry(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version) throws java.lang.Exception
java.lang.Exception
@RequestMapping(value="/favorite/entry/{entryId}", method=POST) @ResponseBody public Response addFavoriteEntry(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version, @PathVariable(value="entryId") java.lang.String entryId) throws java.lang.Exception
java.lang.Exception
@RequestMapping(value="/favorite/entry/{entryId}", method=DELETE) @ResponseBody public Response removeFavoriteEntry(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version, @PathVariable(value="entryId") java.lang.String entryId) throws java.lang.Exception
java.lang.Exception