@ConsumerType public interface OptingServlet extends Servlet
OptingServletinterface may be implemented by
Servletsused by Sling which may choose to not handle all requests for which they would be selected based on their registration properties. Note that servlets implementing this interface can have an impact on system performance, as their resolution cannot be cached: the resolver has no insight into which parts of the request cause
accepts(org.apache.sling.api.SlingHttpServletRequest)to return true.
|Modifier and Type||Method and Description|
Examines the request, and return
boolean accepts(@NotNull @NotNull SlingHttpServletRequest request)
trueif this servlet is willing to handle the request. If
falseis returned, the request will be ignored by this servlet, and may be handled by other servlets.
request- The request to examine
trueif this servlet will handle the request,
Copyright © 2010 - 2019 Adobe. All Rights Reserved