org.apache.sling.auth.core.impl
Class LoginServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by org.apache.sling.api.servlets.SlingSafeMethodsServlet
          extended by org.apache.sling.api.servlets.SlingAllMethodsServlet
              extended by org.apache.sling.auth.core.impl.LoginServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

@Service(value=javax.servlet.Servlet.class)
@Properties(value={@Property(name="service.description",value="Authenticator Login Servlet"),@Property(name="service.vendor",value="The Apache Software Foundation"),@Property(name="sling.servlet.methods",value={"GET","POST"})})
public class LoginServlet
extends SlingAllMethodsServlet

The LoginServlet lets the Authenticator do the login.

See Also:
Serialized Form

Field Summary
static String SERVLET_PATH
          The servlet is registered on this path, and the authenticator allows any requests to that path, without authentication
 
Constructor Summary
LoginServlet()
           
 
Method Summary
protected  void service(SlingHttpServletRequest request, SlingHttpServletResponse response)
          Called by the SlingSafeMethodsServlet.service(ServletRequest, ServletResponse) method to handle the HTTP request.
 
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, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVLET_PATH

@Property(name="sling.servlet.paths")
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(SlingHttpServletRequest request,
                       SlingHttpServletResponse response)
                throws IOException
Description copied from class: SlingSafeMethodsServlet
Called by the SlingSafeMethodsServlet.service(ServletRequest, ServletResponse) method to handle the HTTP request. This implementation calls the SlingSafeMethodsServlet.mayService(SlingHttpServletRequest, SlingHttpServletResponse) method and depedending on its return value call the SlingSafeMethodsServlet.doGeneric(SlingHttpServletRequest, SlingHttpServletResponse) method. If the SlingSafeMethodsServlet.mayService(SlingHttpServletRequest, SlingHttpServletResponse) method can handle the request, the SlingSafeMethodsServlet.doGeneric(SlingHttpServletRequest, SlingHttpServletResponse) method is not called otherwise it is called.

Implementations of this class should not generally overwrite this method. Rather the SlingSafeMethodsServlet.mayService(SlingHttpServletRequest, SlingHttpServletResponse) method should be overwritten to add support for more HTTP methods.

Overrides:
service in class SlingSafeMethodsServlet
Parameters:
request - The HTTP request
response - The HTTP response
Throws:
IOException - Forwarded from the SlingSafeMethodsServlet.mayService(SlingHttpServletRequest, SlingHttpServletResponse) or SlingSafeMethodsServlet.doGeneric(SlingHttpServletRequest, SlingHttpServletResponse) methods.


Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.