Пример #1
0
          public HandlerResult findHandlerResult(
              HttpServletRequest request, HttpServletResponse response) {
            User user = AuthFilter.getUser(request);
            HandlerResult result = new HandlerResult();

            if (isBlank(user)) {
              result.content = result.page = AppPageKeys.UnAuthenticatedLanding.getPage();
            } else {

              result.content = user;
              result.page = AppPageKeys.AuthenticatedHome.getPage();
            }
            result.stopHandlerChain = true;

            return result;
          }