@Test void testAddFilterMapping() { DefaultWebApplicationRequestMapper requestMapper = new DefaultWebApplicationRequestMapper(); Set<String> result = requestMapper.addFilterMapping("filter", "/*"); assertTrue(result.isEmpty()); Collection<String> filters = requestMapper.findFilterMappings("/one_two"); assertFalse(filters.isEmpty()); }
@Override public Set<String> addFilterMapping(Set<DispatcherType> dispatcherTypes, String filterName, String... urlPatterns) { return doAddFilterMapping(isEmpty(dispatcherTypes)? EnumSet.of(REQUEST) : dispatcherTypes, filterName, urlPatterns); }
DefaultWebApplicationRequestMapper implements WebApplicationRequestMapper { @Override public Set<String> addFilterMapping(Set<DispatcherType> dispatcherTypes, String filterName, String... urlPatterns) { return doAddFilterMapping(isEmpty(dispatcherTypes)? EnumSet.of(REQUEST) : dispatcherTypes, filterName, urlPatterns); } }
DefaultWebApplicationRequestMapper implements WebApplicationRequestMapper { @Override public Set<String> addFilterMapping(Set<DispatcherType> dispatcherTypes, String filterName, String... urlPatterns) { return doAddFilterMapping(isEmpty(dispatcherTypes)? EnumSet.of(REQUEST) : dispatcherTypes, filterName, urlPatterns); }  }
DefaultWebApplicationRequestMapper implements WebApplicationRequestMapper { @Override public Set<String> addFilterMapping(Set<DispatcherType> dispatcherTypes, String filterName, String... urlPatterns) { return doAddFilterMapping(isEmpty(dispatcherTypes)? EnumSet.of(REQUEST) : dispatcherTypes, filterName, urlPatterns); }  @Override Set<String> addFilterMapping(Set<DispatcherType> dispatcherTypes, String filterName, String... urlPatterns); @Override Set<String> addFilterMappingBeforeExisting(Set<DispatcherType> dispatcherTypes, String filterName, String... urlPatterns); @Override Set<String> addServletMapping(String servletName, String... urlPatterns); @Override Collection<String> findFilterMappings(DispatcherType dispatcherType, String path); @Override DefaultWebApplicationRequestMapping findServletMapping(String path); @Override Collection<String> getServletMappings(String servletName); @Override String getServletName(String mapping); }
DefaultWebApplicationRequestMapper implements WebApplicationRequestMapper { @Override public Set<String> addFilterMapping(Set<DispatcherType> dispatcherTypes, String filterName, String... urlPatterns) { return doAddFilterMapping(isEmpty(dispatcherTypes)? EnumSet.of(REQUEST) : dispatcherTypes, filterName, urlPatterns); }  @Override Set<String> addFilterMapping(Set<DispatcherType> dispatcherTypes, String filterName, String... urlPatterns); @Override Set<String> addFilterMappingBeforeExisting(Set<DispatcherType> dispatcherTypes, String filterName, String... urlPatterns); @Override Set<String> addServletMapping(String servletName, String... urlPatterns); @Override Collection<String> findFilterMappings(DispatcherType dispatcherType, String path); @Override DefaultWebApplicationRequestMapping findServletMapping(String path); @Override Collection<String> getServletMappings(String servletName); @Override String getServletName(String mapping);  }