|
40 | 40 | * Wraps a {@link HandlerInterceptor} and uses URL patterns to determine whether
|
41 | 41 | * it applies to a given request.
|
42 | 42 | *
|
43 |
| - * <p>Pattern matching can be done with {@link PathMatcher} or with parsed |
| 43 | + * <p>Pattern matching can be done with a {@link PathMatcher} or with a parsed |
44 | 44 | * {@link PathPattern}. The syntax is largely the same with the latter being more
|
45 | 45 | * tailored for web usage and more efficient. The choice is driven by the
|
46 |
| - * presence of a {@link UrlPathHelper#resolveAndCacheLookupPath resolved} |
47 |
| - * {@code String} lookupPath or a {@link ServletRequestPathUtils#parseAndCache |
48 |
| - * parsed} {@code RequestPath} which in turn depends on the |
49 |
| - * {@link HandlerMapping} that matched the current request. |
| 46 | + * presence of a {@linkplain UrlPathHelper#resolveAndCacheLookupPath resolved} |
| 47 | + * {@code String} lookupPath or a {@linkplain ServletRequestPathUtils#parseAndCache |
| 48 | + * parsed} {@code RequestPath} which in turn depends on the {@link HandlerMapping} |
| 49 | + * that matched the current request. |
50 | 50 | *
|
51 | 51 | * <p>{@code MappedInterceptor} is supported by subclasses of
|
52 | 52 | * {@link org.springframework.web.servlet.handler.AbstractHandlerMethodMapping
|
53 |
| - * AbstractHandlerMethodMapping} which detect beans of type |
54 |
| - * {@code MappedInterceptor} and also check if interceptors directly registered |
55 |
| - * with it are of this type. |
| 53 | + * AbstractHandlerMethodMapping} which detect beans of type {@code MappedInterceptor} |
| 54 | + * and also check if interceptors directly registered with it are of this type. |
56 | 55 | *
|
57 | 56 | * @author Keith Donald
|
58 | 57 | * @author Rossen Stoyanchev
|
@@ -187,15 +186,15 @@ public HandlerInterceptor getInterceptor() {
|
187 | 186 | * <p>By default this is {@link AntPathMatcher}.
|
188 | 187 | * <p><strong>Note:</strong> Setting {@code PathMatcher} enforces use of
|
189 | 188 | * String pattern matching even when a
|
190 |
| - * {@link ServletRequestPathUtils#parseAndCache parsed} {@code RequestPath} |
| 189 | + * {@linkplain ServletRequestPathUtils#parseAndCache parsed} {@code RequestPath} |
191 | 190 | * is available.
|
192 | 191 | */
|
193 | 192 | public void setPathMatcher(PathMatcher pathMatcher) {
|
194 | 193 | this.pathMatcher = pathMatcher;
|
195 | 194 | }
|
196 | 195 |
|
197 | 196 | /**
|
198 |
| - * The {@link #setPathMatcher(PathMatcher) configured} PathMatcher. |
| 197 | + * Get the {@linkplain #setPathMatcher(PathMatcher) configured} PathMatcher. |
199 | 198 | */
|
200 | 199 | public PathMatcher getPathMatcher() {
|
201 | 200 | return this.pathMatcher;
|
@@ -234,13 +233,13 @@ public boolean matches(HttpServletRequest request) {
|
234 | 233 | }
|
235 | 234 |
|
236 | 235 | /**
|
237 |
| - * Determine a match for the given lookup path. |
| 236 | + * Determine if there is a match for the given lookup path. |
238 | 237 | * @param lookupPath the current request path
|
239 | 238 | * @param pathMatcher a path matcher for path pattern matching
|
240 | 239 | * @return {@code true} if the interceptor applies to the given request path
|
241 | 240 | * @deprecated as of 5.3 in favor of {@link #matches(HttpServletRequest)}
|
242 | 241 | */
|
243 |
| - @Deprecated |
| 242 | + @Deprecated(since = "5.3") |
244 | 243 | public boolean matches(String lookupPath, PathMatcher pathMatcher) {
|
245 | 244 | pathMatcher = (this.pathMatcher != defaultPathMatcher ? this.pathMatcher : pathMatcher);
|
246 | 245 | if (!ObjectUtils.isEmpty(this.excludePatterns)) {
|
|
0 commit comments