22
22
import java .util .Map ;
23
23
import java .util .Objects ;
24
24
25
- import org .jspecify .annotations .Nullable ;
26
-
27
25
import org .springframework .scheduling .TaskScheduler ;
28
26
import org .springframework .util .MultiValueMap ;
29
27
import org .springframework .web .HttpRequestHandler ;
30
28
import org .springframework .web .servlet .handler .AbstractHandlerMapping ;
31
29
import org .springframework .web .servlet .handler .SimpleUrlHandlerMapping ;
32
30
import org .springframework .web .socket .WebSocketHandler ;
33
31
import org .springframework .web .socket .server .support .WebSocketHandlerMapping ;
34
- import org .springframework .web .util .UrlPathHelper ;
35
32
36
33
/**
37
34
* {@link WebSocketHandlerRegistry} with Spring MVC handler mappings for the
@@ -46,8 +43,6 @@ public class ServletWebSocketHandlerRegistry implements WebSocketHandlerRegistry
46
43
47
44
private int order = 1 ;
48
45
49
- private @ Nullable UrlPathHelper urlPathHelper ;
50
-
51
46
52
47
public ServletWebSocketHandlerRegistry () {
53
48
}
@@ -74,27 +69,6 @@ public int getOrder() {
74
69
return this .order ;
75
70
}
76
71
77
- /**
78
- * Set the UrlPathHelper to configure on the {@code SimpleUrlHandlerMapping}
79
- * used to map handshake requests.
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.
83
- */
84
- @ Deprecated (since = "6.2.4" , forRemoval = true )
85
- public void setUrlPathHelper (@ Nullable UrlPathHelper urlPathHelper ) {
86
- this .urlPathHelper = urlPathHelper ;
87
- }
88
-
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 () {
95
- return this .urlPathHelper ;
96
- }
97
-
98
72
99
73
/**
100
74
* Whether there are any endpoint SockJS registrations without a TaskScheduler.
@@ -134,9 +108,6 @@ public AbstractHandlerMapping getHandlerMapping() {
134
108
WebSocketHandlerMapping hm = new WebSocketHandlerMapping ();
135
109
hm .setUrlMap (urlMap );
136
110
hm .setOrder (this .order );
137
- if (this .urlPathHelper != null ) {
138
- hm .setUrlPathHelper (this .urlPathHelper );
139
- }
140
111
return hm ;
141
112
}
142
113
0 commit comments