|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
org.apache.sling.api.servlets.SlingSafeMethodsServlet
org.apache.sling.api.servlets.SlingAllMethodsServlet
org.apache.sling.auth.core.impl.LoginServlet
@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
The LoginServlet
lets the Authenticator do the login.
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 |
---|
@Property(name="sling.servlet.paths") public static final String SERVLET_PATH
Constructor Detail |
---|
public LoginServlet()
Method Detail |
---|
protected void service(SlingHttpServletRequest request, SlingHttpServletResponse response) throws IOException
SlingSafeMethodsServlet
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.
service
in class SlingSafeMethodsServlet
request
- The HTTP requestresponse
- The HTTP response
IOException
- Forwarded from the
SlingSafeMethodsServlet.mayService(SlingHttpServletRequest, SlingHttpServletResponse)
or
SlingSafeMethodsServlet.doGeneric(SlingHttpServletRequest, SlingHttpServletResponse)
methods.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |