Search in sources :

Example 1 with SparkApplication

use of spark.servlet.SparkApplication 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);
}
Also used : MatcherFilter(spark.http.matching.MatcherFilter) SparkApplication(spark.servlet.SparkApplication)

Example 2 with SparkApplication

use of spark.servlet.SparkApplication 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);
}
Also used : MatcherFilter(spark.http.matching.MatcherFilter) SparkApplication(spark.servlet.SparkApplication)

Aggregations

MatcherFilter (spark.http.matching.MatcherFilter)2 SparkApplication (spark.servlet.SparkApplication)2