Class LoginCommand


  • public class LoginCommand
    extends Command
    Handles login.

    Both logging in with username/password or owner-only consumer are supported.

    This command also manages cookies of login credentials.

    Cookies for different MediaWiki API endpoint are stored, but only one connection is kept at the same time.

    • Constructor Detail

      • LoginCommand

        public LoginCommand()
    • Method Detail

      • doPost

        public void doPost​(javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response)
                    throws javax.servlet.ServletException,
                           IOException
        Overrides:
        doPost in class Command
        Throws:
        javax.servlet.ServletException
        IOException
      • doGet

        public void doGet​(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)
                   throws javax.servlet.ServletException,
                          IOException
        Overrides:
        doGet in class Command
        Throws:
        javax.servlet.ServletException
        IOException
      • respond

        protected void respond​(javax.servlet.http.HttpServletRequest request,
                               javax.servlet.http.HttpServletResponse response)
                        throws IOException
        Throws:
        IOException
      • setConnectionManager

        protected void setConnectionManager​(ConnectionManager connectionManager)