|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.GenericServlet org.apache.sling.api.servlets.SlingSafeMethodsServlet org.apache.sling.api.servlets.SlingAllMethodsServlet org.apache.sling.jcr.jackrabbit.accessmanager.post.AbstractAccessPostServlet
public abstract class AbstractAccessPostServlet
Base class for all the POST servlets for the AccessManager operations
Constructor Summary | |
---|---|
AbstractAccessPostServlet()
|
Method Summary | |
---|---|
protected void |
doPost(SlingHttpServletRequest request,
SlingHttpServletResponse httpResponse)
Called by the SlingAllMethodsServlet.mayService(SlingHttpServletRequest, SlingHttpServletResponse) method to
handle an HTTP POST request. |
protected java.lang.String |
externalizePath(SlingHttpServletRequest request,
java.lang.String path)
Returns an external form of the given path prepending the context path and appending a display extension. |
protected java.lang.String |
getItemPath(SlingHttpServletRequest request)
Returns the path of the resource of the request as the item path. |
protected java.lang.String |
getRedirectUrl(javax.servlet.http.HttpServletRequest request,
HtmlResponse ctx)
compute redirect URL (SLING-126) |
protected abstract void |
handleOperation(SlingHttpServletRequest request,
HtmlResponse htmlResponse,
java.util.List<Modification> changes)
Extending Servlet should implement this operation to do the work |
protected boolean |
isSetStatus(SlingHttpServletRequest request)
|
Methods inherited from class org.apache.sling.api.servlets.SlingAllMethodsServlet |
---|
doDelete, doPut, getAllowedRequestMethods, isMethodValid, mayService |
Methods inherited from class org.apache.sling.api.servlets.SlingSafeMethodsServlet |
---|
doGeneric, doGet, 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 |
---|
public AbstractAccessPostServlet()
Method Detail |
---|
protected void doPost(SlingHttpServletRequest request, SlingHttpServletResponse httpResponse) throws javax.servlet.ServletException, java.io.IOException
SlingAllMethodsServlet
SlingAllMethodsServlet.mayService(SlingHttpServletRequest, SlingHttpServletResponse)
method to
handle an HTTP POST 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 POST method support.
doPost
in class SlingAllMethodsServlet
request
- The HTTP requesthttpResponse
- The HTTP response
javax.servlet.ServletException
- Not thrown by this implementation.
java.io.IOException
- If the error status cannot be reported back to the
client.protected abstract void handleOperation(SlingHttpServletRequest request, HtmlResponse htmlResponse, java.util.List<Modification> changes) throws javax.jcr.RepositoryException
request
- the sling http request to processhtmlResponse
- the responsechanges
-
javax.jcr.RepositoryException
protected java.lang.String getRedirectUrl(javax.servlet.http.HttpServletRequest request, HtmlResponse ctx)
ctx
- the post processor
null
protected boolean isSetStatus(SlingHttpServletRequest request)
protected java.lang.String getItemPath(SlingHttpServletRequest request)
This method may be overwritten by extension if the operation has different requirements on path processing.
protected final java.lang.String externalizePath(SlingHttpServletRequest request, java.lang.String path)
path
- the path to externalize
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |