java.lang.Object
javax.servlet.GenericServlet
org.apache.sling.api.servlets.SlingSafeMethodsServlet
org.apache.sling.api.servlets.SlingAllMethodsServlet
com.adobe.acs.commons.analysis.jcrchecksum.impl.servlets.BaseChecksumServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
ChecksumGeneratorServlet, JSONDumpServlet

public class BaseChecksumServlet extends org.apache.sling.api.servlets.SlingAllMethodsServlet
Provides CORS functionality required by the server-to-server XHR communication
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final void
    doOptions(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response)
     
    protected void
    handleCORS(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response)
     
    protected final boolean
    isAnonymous(org.apache.sling.api.SlingHttpServletRequest 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, 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 Details

    • BaseChecksumServlet

      public BaseChecksumServlet()
  • Method Details

    • isAnonymous

      protected final boolean isAnonymous(org.apache.sling.api.SlingHttpServletRequest request)
    • doOptions

      protected final void doOptions(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response) throws IOException, javax.servlet.ServletException
      Overrides:
      doOptions in class org.apache.sling.api.servlets.SlingSafeMethodsServlet
      Throws:
      IOException
      javax.servlet.ServletException
    • handleCORS

      protected void handleCORS(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response)