/** * @param map : holds require attributes * @param request :for getting session * @return: to the specified path * @throws QuestionBankSystemException: handle all system related exceptions * @throws QuestionBankException: handle all runtime exceptions */ @RequestMapping(value = "/Oauth2CallBack", method = RequestMethod.GET) public String doGet( Map<String, Object> map, HttpServletRequest request, HttpServletResponse response) throws QuestionBankSystemException, QuestionBankException { userService.doSetupForPage(map, ""); // do setup for page map = userService.doGet(map, request, response); // for google login return (String) map.get("result"); // redirecting specified page }