public abstract class AbstractGetAclServlet extends SlingAllMethodsServlet
Constructor and Description |
---|
AbstractGetAclServlet() |
Modifier and Type | Method and Description |
---|---|
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) |
protected JSONObject |
internalGetAcl(javax.jcr.Session jcrSession,
String resourcePath) |
doDelete, doPost, doPut, getAllowedRequestMethods, isMethodValid, mayService
doGeneric, doHead, doOptions, doTrace, getServletInfo, handleMethodNotImplemented, service, service
protected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response) throws javax.servlet.ServletException, IOException
SlingSafeMethodsServlet
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.
doGet
in class SlingSafeMethodsServlet
request
- The HTTP requestresponse
- The HTTP responsejavax.servlet.ServletException
- Not thrown by this implementation.IOException
- If the error status cannot be reported back to the
client.protected JSONObject internalGetAcl(javax.jcr.Session jcrSession, String resourcePath) throws javax.jcr.RepositoryException, JSONException
javax.jcr.RepositoryException
JSONException
protected abstract javax.jcr.security.AccessControlEntry[] getAccessControlEntries(javax.jcr.Session session, String absPath) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Copyright © 2015 The Apache Software Foundation. All rights reserved.