List of usage examples for java.net URLDecoder decode
@Deprecated public static String decode(String s)
From source file:com.rajaram.bookmark.controller.BookmarkController.java
@RequestMapping(value = "{userName}", method = RequestMethod.GET) @ApiOperation(httpMethod = "GET", value = "Get bookmarks from the database" + " for a given user name." , produces = ("application/json,application/xml")) public @ResponseBody BookmarkList getBookmarks( @ApiParam(name = "userName", value = "user name", required = true) @RequestParam String userName) { userName = URLDecoder.decode(userName); List<Bookmark> bookmarks = bookmarkService.getBookmarks(userName); BookmarkList bookmarkList = new BookmarkList(bookmarks); return bookmarkList; }