Class Authenticate

    • Field Detail

      • USER_SESSION_MAP_ATTR

        public static final String USER_SESSION_MAP_ATTR
        Where do we find the User/Session map in the servlet context?
        See Also:
        Constant Field Values
    • Constructor Detail

      • Authenticate

        public Authenticate()
    • Method Detail

      • doPost

        public void doPost​(javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response)
        Find out where they are in the login process, process any input, record the new state, and show the next page.
        Overrides:
        doPost in class VitroHttpServlet
      • getUserURISessionMapFromContext

        public static Map<String,​javax.servlet.http.HttpSession> getUserURISessionMapFromContext​(javax.servlet.ServletContext ctx)
        The servlet context should contain a map from User URIs to HttpSessions. Get a reference to it, creating it if necessary.
      • sendLoginNotifyEvent

        public static void sendLoginNotifyEvent​(LoginLogoutEvent event,
                                                javax.servlet.ServletContext context,
                                                javax.servlet.http.HttpSession session)
        Let everyone know that somebody has logged in or logged out.
      • doGet

        public void doGet​(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)
                   throws IOException,
                          javax.servlet.ServletException
        Description copied from class: VitroHttpServlet
        doGet does nothing.
        Overrides:
        doGet in class VitroHttpServlet
        Throws:
        IOException
        javax.servlet.ServletException