use of spark.servlet.SparkFilter in project brave by openzipkin.
the class ITTracingFilter method init.
@Override
public void init(ServletContextHandler handler) {
handler.getServletContext().addFilter("tracingFilter", TracingFilter.create(httpTracing)).addMappingForUrlPatterns(EnumSet.allOf(DispatcherType.class), true, "/*");
Dynamic sparkFilter = handler.getServletContext().addFilter("sparkFilter", new SparkFilter());
sparkFilter.setInitParameter("applicationClass", TestApplication.class.getName());
sparkFilter.addMappingForUrlPatterns(EnumSet.allOf(DispatcherType.class), true, "/*");
}
Aggregations