use of org.apache.sling.engine.impl.filter.SlingComponentFilterChain in project sling by apache.
the class SlingRequestProcessorImpl method processComponent.
/**
* Renders the component defined by the RequestData's current ComponentData
* instance after calling all filters of the given
* {@link org.apache.sling.engine.impl.filter.ServletFilterManager.FilterChainType
* filterChainType}.
*
* @param request
* @param response
* @param filterChainType
* @throws IOException
* @throws ServletException
*/
public void processComponent(SlingHttpServletRequest request, SlingHttpServletResponse response, final FilterChainType filterChainType) throws IOException, ServletException {
FilterHandle[] filters = filterManager.getFilters(filterChainType);
if (filters != null) {
FilterChain processor = new SlingComponentFilterChain(filters);
request.getRequestProgressTracker().log("Applying " + filterChainType + "filters");
processor.doFilter(request, response);
} else {
log.debug("service: No Resource level filters, calling servlet");
RequestData.service(request, response);
}
}
Aggregations