I want to add an URL mapping to the filter that I'm adding to the servlet context. It looks like this
servletContext.addFilter("filterName", Filter.class).addMappingForUrlPatterns();
addMappingForUrlPatterns(); requires DispatcherType as a parameter. When we use web.xml type of configuration, we can just add the <url-pattern> tag with the value. And if I understand this configuration correctly, it would require the DispatcherType anyway. What would be the default value in that case?