001 package org.apache.shiro.web.filter;
002
003 import org.apache.shiro.util.AntPathMatcher;
004
005 public class PathMatchingFilterPatternMatcherChanger {
006 public static void setLowercasingPathMatcher(PathMatchingFilter filter) {
007 AntPathMatcher pathMatcher = new AntPathMatcher() {
008 @Override
009 public boolean matches(String pattern, String source) {
010 return super.matches(pattern, source.toLowerCase());
011 }
012 };
013
014 filter.pathMatcher = pathMatcher;
015 }
016 }