Example usage for org.apache.wicket.protocol.http WicketFilter IGNORE_PATHS_PARAM

List of usage examples for org.apache.wicket.protocol.http WicketFilter IGNORE_PATHS_PARAM

Introduction

In this page you can find the example usage for org.apache.wicket.protocol.http WicketFilter IGNORE_PATHS_PARAM.

Prototype

String IGNORE_PATHS_PARAM

To view the source code for org.apache.wicket.protocol.http WicketFilter IGNORE_PATHS_PARAM.

Click Source Link

Document

Name of parameter used to express a comma separated list of paths that should be ignored

Usage

From source file:com.francetelecom.clara.cloud.webapp.config.WicketWebInitializer.java

License:Apache License

@Bean
public FilterRegistrationBean wicketFilterRegistration() {

    FilterRegistrationBean registration = new FilterRegistrationBean();
    WicketFilter wicketFilter = new WicketFilter();
    registration.setFilter(wicketFilter);
    registration.setName("wicketFilter");
    registration.addInitParameter(WicketFilter.APP_FACT_PARAM, SpringWebApplicationFactory.class.getName());
    registration.addInitParameter("configuration", configuration);
    registration.addInitParameter("testsMode", String.valueOf(testMode));
    registration.addInitParameter("mockMode", String.valueOf(mockMode));
    registration.addInitParameter(WicketFilter.FILTER_MAPPING_PARAM, "/portal/*");
    registration.addInitParameter(WicketFilter.IGNORE_PATHS_PARAM, "/favicon.ico");
    registration.addUrlPatterns("/portal/*");
    registration.setDispatcherTypes(DispatcherType.REQUEST, DispatcherType.FORWARD);
    registration.setMatchAfter(true);// ww w .jav  a  2s. c om

    return registration;
}