org.apache.sling.jcr.jackrabbit.accessmanager.post
Class AbstractGetAclServlet

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.jcr.jackrabbit.accessmanager.post.AbstractGetAclServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
GetAclServlet, GetEffectiveAclServlet

public abstract class AbstractGetAclServlet
extends SlingAllMethodsServlet

See Also:
Serialized Form

Constructor Summary
AbstractGetAclServlet()
           
 
Method Summary
protected  void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response)
          Called by the SlingSafeMethodsServlet.mayService(SlingHttpServletRequest, SlingHttpServletResponse) method to handle an HTTP GET request.
protected abstract  javax.jcr.security.AccessControlEntry[] getAccessControlEntries(javax.jcr.Session session, String absPath)
           
 
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, doHead, doOptions, doTrace, getServletInfo, handleMethodNotImplemented, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractGetAclServlet

public AbstractGetAclServlet()
Method Detail

doGet

protected void doGet(SlingHttpServletRequest request,
                     SlingHttpServletResponse response)
              throws javax.servlet.ServletException,
                     IOException
Description copied from class: SlingSafeMethodsServlet
Called by the SlingSafeMethodsServlet.mayService(SlingHttpServletRequest, SlingHttpServletResponse) method to handle an HTTP GET request.

This default implementation reports back to the client that the method is not supported.

Implementations of this class should overwrite this method with their implementation for the HTTP GET method support.

Overrides:
doGet in class SlingSafeMethodsServlet
Parameters:
request - The HTTP request
response - The HTTP response
Throws:
javax.servlet.ServletException - Not thrown by this implementation.
IOException - If the error status cannot be reported back to the client.

getAccessControlEntries

protected abstract javax.jcr.security.AccessControlEntry[] getAccessControlEntries(javax.jcr.Session session,
                                                                                   String absPath)
                                                                            throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException


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