Class LoginProcessBean


  • public class LoginProcessBean
    extends Object
    Where are we in the process of logging on? What message should we show to the user? TODO: the contents loginPageUrl is not explicitly defined, but it is assumed to be either null, absolute, or relative to the host. It would be better if it were explicitly defined, and either null, absolute or relative to the context path. Then, the context path could be applied when the URL is used. Later for that. TODO: similar for afterLoginUrl, I presume.
    • Constructor Detail

      • LoginProcessBean

        public LoginProcessBean()
    • Method Detail

      • isBean

        public static boolean isBean​(javax.servlet.http.HttpServletRequest request)
        Is there currently a login process bean in the session?
      • getBean

        public static LoginProcessBean getBean​(javax.servlet.http.HttpServletRequest request)
        Get the login process bean from the session. If there is no bean, create one.
      • setBean

        public static void setBean​(javax.servlet.http.HttpServletRequest request,
                                   LoginProcessBean bean)
        Store this login process bean in the session.
      • removeBean

        public static void removeBean​(javax.servlet.http.HttpServletRequest request)
        Remove the login process bean from the session. If there is no bean, do nothing.
      • clearMessage

        public void clearMessage()
      • getInfoMessageAndClear

        public String getInfoMessageAndClear()
      • getErrorMessageAndClear

        public String getErrorMessageAndClear()
      • getUsername

        public String getUsername()
      • setUsername

        public void setUsername​(String username)
      • getLoginPageUrl

        public String getLoginPageUrl()
      • setLoginPageUrl

        public void setLoginPageUrl​(String loginPageUrl)
      • getAfterLoginUrl

        public String getAfterLoginUrl()
      • setAfterLoginUrl

        public void setAfterLoginUrl​(String afterLoginUrl)