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

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.LogoutServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

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

The LogoutServlet lets the Authenticator do the logout.

See Also:
Serialized Form

Field Summary
static String SERVLET_PATH
          The servlet is registered on this path.
 
Constructor Summary
LogoutServlet()
           
 
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.

See Also:
Constant Field Values
Constructor Detail

LogoutServlet

public LogoutServlet()
Method Detail

service

protected void service(SlingHttpServletRequest request,
                       SlingHttpServletResponse response)
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


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