Sling Request Invocation Chain Implementing Sling Filters Registration of Filters Standard Servlet Filter (javax.servlet.Filter) Need to be registered as Service („manually“ or SlingFilter SCR Annotation) Order and FilterScopes can be defined Order defined by Serviceranking Filterscopes REQUEST COMPONENT ERROR INCLUDE * FORWARD * * FilterChain executes COMPONENT scope for these scopes as well. SCR Annotation @SlingFilter(scope = SlingFilterScope.COMPONENT, order = -10000, metatype = false) public class MyComponentFilter implements javax.servlet.Filter { @Override public void doFilter(ServletRequest pRequest, ServletResponse pResponse, FilterChain pChain) throws IOException, ServletException { // Implement Filter // continue with filter chaining pChain.doFilter(pRequest, pResponse); } } Filter Order Existing Filters might use the deprecated “filter.order” instead “service.ranking”. ...