|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2024 the original author or authors. |
| 2 | + * Copyright 2002-2025 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
26 | 26 |
|
27 | 27 | import org.springframework.scheduling.TaskScheduler;
|
28 | 28 | import org.springframework.util.MultiValueMap;
|
29 |
| -import org.springframework.util.PathMatcher; |
30 | 29 | import org.springframework.web.HttpRequestHandler;
|
31 | 30 | import org.springframework.web.servlet.handler.AbstractHandlerMapping;
|
32 | 31 | import org.springframework.web.servlet.handler.SimpleUrlHandlerMapping;
|
33 | 32 | import org.springframework.web.socket.WebSocketHandler;
|
34 | 33 | import org.springframework.web.socket.server.support.WebSocketHandlerMapping;
|
35 | 34 | import org.springframework.web.util.UrlPathHelper;
|
36 |
| -import org.springframework.web.util.pattern.PathPatternParser; |
37 | 35 |
|
38 | 36 | /**
|
39 | 37 | * {@link WebSocketHandlerRegistry} with Spring MVC handler mappings for the
|
@@ -79,17 +77,21 @@ public int getOrder() {
|
79 | 77 | /**
|
80 | 78 | * Set the UrlPathHelper to configure on the {@code SimpleUrlHandlerMapping}
|
81 | 79 | * used to map handshake requests.
|
82 |
| - * @deprecated use of {@link PathMatcher} and {@link UrlPathHelper} is deprecated |
83 |
| - * for use at runtime in web modules in favor of parsed patterns with |
84 |
| - * {@link PathPatternParser}. |
| 80 | + * @deprecated without a replacement since effectively the UrlPathHelper is |
| 81 | + * no longer used with {@code PathPatternParser} used by the default in |
| 82 | + * all extensions of {@code AbstractHandlerMapping}. To be removed in 7.0. |
85 | 83 | */
|
86 |
| - @Deprecated(since = "7.0", forRemoval = true) |
| 84 | + @Deprecated(since = "6.2.4", forRemoval = true) |
87 | 85 | public void setUrlPathHelper(@Nullable UrlPathHelper urlPathHelper) {
|
88 | 86 | this.urlPathHelper = urlPathHelper;
|
89 | 87 | }
|
90 | 88 |
|
91 |
| - @Deprecated(since = "7.0", forRemoval = true) |
92 |
| - public @Nullable UrlPathHelper getUrlPathHelper() { |
| 89 | + /** |
| 90 | + * Return the configured {@code UrlPathHelper}. |
| 91 | + * @deprecated without a replacement; see notice on {@link #setUrlPathHelper} |
| 92 | + */ |
| 93 | + @Deprecated(since = "6.2.4", forRemoval = true) |
| 94 | + public @Nullable UrlPathHelper getUrlPathHelper() { |
93 | 95 | return this.urlPathHelper;
|
94 | 96 | }
|
95 | 97 |
|
|
0 commit comments