String method = httpServletRequest.getMethod();
if (tokenService.isValid(tokenId) && method.equalsIgnoreCase("GET")) {
redirectPage(httpServletRequest, httpServletResponse);
} else {
httpServletResponse.sendError(HttpServletResponse.SC_NOT_FOUND, "Not found");
return;
}
}
private void redirectPage(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException {