Class LogoutRedirector


  • public class LogoutRedirector
    extends Object
    When a user logs out, where will they go?
    • Constructor Detail

      • LogoutRedirector

        public LogoutRedirector()
    • Method Detail

      • getRedirectUrl

        public static String getRedirectUrl​(javax.servlet.http.HttpServletRequest request,
                                            javax.servlet.http.HttpServletResponse response,
                                            String referrer)
                                     throws IOException
        If the page they were on was not restricted, send them back to it. Otherwise, send them to the home page.
        Throws:
        IOException
      • recordRestrictedPageUri

        public static void recordRestrictedPageUri​(javax.servlet.http.HttpServletRequest request)
        This must be called each time VitroHttpRequest checks to see whether a page's restrictions are met, so we know which pages are restricted. We might be content to just know the last restricted page, but that could lead to problems if two pages are nested.