Class LoginServlet

  • All Implemented Interfaces:
    Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class LoginServlet
    extends org.apache.sling.api.servlets.SlingAllMethodsServlet
    The LoginServlet lets the Authenticator do the login.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String SERVLET_PATH
      The servlet is registered on this path, and the authenticator allows any requests to that path, without authentication
    • Constructor Summary

      Constructors 
      Constructor Description
      LoginServlet()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void service​(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response)  
      • Methods inherited from class org.apache.sling.api.servlets.SlingAllMethodsServlet

        doDelete, doPost, doPut, getAllowedRequestMethods, isMethodValid, mayService
      • Methods inherited from class org.apache.sling.api.servlets.SlingSafeMethodsServlet

        doGeneric, doGet, doHead, doOptions, doTrace, getServletInfo, handleMethodNotImplemented, service
      • Methods inherited from class javax.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, init, log, log
    • Field Detail

      • SERVLET_PATH

        public static final String SERVLET_PATH
        The servlet is registered on this path, and the authenticator allows any requests to that path, without authentication
        See Also:
        Constant Field Values
    • Constructor Detail

      • LoginServlet

        public LoginServlet()
    • Method Detail

      • service

        protected void service​(org.apache.sling.api.SlingHttpServletRequest request,
                               org.apache.sling.api.SlingHttpServletResponse response)
                        throws IOException
        Overrides:
        service in class org.apache.sling.api.servlets.SlingSafeMethodsServlet
        Throws:
        IOException