我想捕获AEM 6.3中过滤器内的所有请求。过滤器如下:
@Component(
property = {
"pattern=/.*",
"service.ranking=" + TryFilter.SERVICE_RANKING
}
)
public class TryFilter implements Filter {
public static final int SERVICE_RANKING = 2147483647;
private static final Logger LOG = LoggerFactory.getLogger(TryFilter.class);
@Override
public void init(FilterConfig filterConfig) throws ServletException {
}
@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
LOG.debug("Begin Filter");
LOG.debug("End Filter");
}
@Override
public void destroy() {
}
问题是过滤器没有捕获像http://localhost:4502/aem/start.html这样的请求,特别是以.html结尾的请求。你对这个问题有什么看法吗?我检查了patternUrl的过滤器,但对于http://localhost:4502/crx/de/index.jsp它可以工作。