1
0
mirror of synced 2026-05-22 21:33:16 +00:00

SEC-1171: Allow multiple http elements and add pattern attribute to specify filter chain mapping.

This commit is contained in:
Luke Taylor
2010-04-06 20:50:47 +01:00
parent b0758dd8de
commit 7d74b7c87e
7 changed files with 153 additions and 73 deletions
@@ -80,6 +80,16 @@ public final class AntPathRequestMatcher implements RequestMatcher {
return pattern;
}
@Override
public boolean equals(Object obj) {
if (!(obj instanceof AntPathRequestMatcher)) {
return false;
}
AntPathRequestMatcher other = (AntPathRequestMatcher)obj;
return this.pattern.equals(other.pattern) &&
this.httpMethod == other.httpMethod;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();