use of spark.http.matching.MatcherFilter in project ddf by codice.
the class SparkServlet method init.
@Override
public void init(ServletConfig config) throws ServletException {
super.init(config);
ServletFlag.runFromServlet();
populateWrapperSupplier(config);
populateSparkApplications(config);
sparkApplications.stream().sequential().forEach(SparkApplication::init);
filterPath = getConfigPath(filterMappingPattern, config);
matcherFilter = new MatcherFilter(ServletRoutes.get(), StaticFilesConfiguration.servletInstance, false, false);
}
use of spark.http.matching.MatcherFilter in project ddf by codice.
the class SparkServlet method init.
@Override
public void init(ServletConfig config) throws ServletException {
super.init(config);
ServletFlag.runFromServlet();
populateWrapperSupplier(config);
populateSparkApplications(config);
sparkApplications.stream().sequential().forEach(SparkApplication::init);
filterPath = getConfigPath(filterMappingPattern, config);
matcherFilter = new MatcherFilter(ServletRoutes.get(), StaticFilesConfiguration.servletInstance, false, false);
}
use of spark.http.matching.MatcherFilter in project spark by perwendel.
the class SparkFilter method init.
@Override
public void init(FilterConfig filterConfig) throws ServletException {
ServletFlag.runFromServlet();
applications = getApplications(filterConfig);
for (SparkApplication application : applications) {
application.init();
}
filterPath = FilterTools.getFilterPath(filterConfig);
matcherFilter = new MatcherFilter(ServletRoutes.get(), StaticFilesConfiguration.servletInstance, true, false);
}
use of spark.http.matching.MatcherFilter in project spark by perwendel.
the class EmbeddedJettyFactory method create.
public EmbeddedServer create(Routes routeMatcher, StaticFilesConfiguration staticFilesConfiguration, boolean hasMultipleHandler) {
MatcherFilter matcherFilter = new MatcherFilter(routeMatcher, staticFilesConfiguration, false, hasMultipleHandler);
matcherFilter.init(null);
JettyHandler handler = new JettyHandler(matcherFilter);
return new EmbeddedJettyServer(handler);
}
Aggregations