if (StringUtils.isEmpty(ignoredPath)) {
continue;
}
if (ignoredPath.equals("*")) {
list.add(new IgnoredPathEquals(""));
list.add(new IgnoredPathStarts("/"));
break;
}
if (ignoredPath.startsWith("regex:")) {
list.add(new IgnoredPathRegexMatch(ignoredPath.substring("regex:".length())));
} else {
if (ignoredPath.length() > 0 && !ignoredPath.startsWith("/")
&& !ignoredPath.startsWith("*")) {
ignoredPath = "/" + ignoredPath;
}
if (ignoredPath.endsWith("*")) {
list.add(new IgnoredPathStarts(ignoredPath.substring(0,
ignoredPath.length() - 1)));
} else if (ignoredPath.startsWith("*")) {
list.add(new IgnoredPathEnds(ignoredPath.substring(1)));
} else {
list.add(new IgnoredPathEquals(ignoredPath));