Search in sources :

Example 1 with FilterHostConfig

use of org.apache.struts2.dispatcher.filter.FilterHostConfig in project entando-core by entando.

the class StrutsPrepareAndExecuteFilter method init.

@Override
public void init(FilterConfig filterConfig) throws ServletException {
    InitOperations init = new InitOperations();
    Dispatcher dispatcher = null;
    try {
        FilterHostConfig config = new FilterHostConfig(filterConfig);
        init.initLogging(config);
        dispatcher = init.initDispatcher(config);
        init.initStaticContentLoader(config, dispatcher);
        this.prepare = new PrepareOperations(dispatcher);
        this.execute = new ExecuteOperations(dispatcher);
        this.excludedPatterns = init.buildExcludedPatternsList(dispatcher);
        this.postInit(dispatcher, filterConfig);
    } finally {
        if (dispatcher != null) {
            dispatcher.cleanUpAfterInit();
        }
        init.cleanup();
    }
}
Also used : FilterHostConfig(org.apache.struts2.dispatcher.filter.FilterHostConfig) ExecuteOperations(org.apache.struts2.dispatcher.ExecuteOperations) Dispatcher(org.apache.struts2.dispatcher.Dispatcher)

Aggregations

Dispatcher (org.apache.struts2.dispatcher.Dispatcher)1 ExecuteOperations (org.apache.struts2.dispatcher.ExecuteOperations)1 FilterHostConfig (org.apache.struts2.dispatcher.filter.FilterHostConfig)1