Skip to content

Commit 11677ac

Browse files
authored
Merge branch 'spring-projects:main' into main
2 parents b350138 + 788b66f commit 11677ac

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

spring-websocket/src/main/java/org/springframework/web/socket/config/annotation/ServletWebSocketHandlerRegistry.java

-29
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,13 @@
2222
import java.util.Map;
2323
import java.util.Objects;
2424

25-
import org.jspecify.annotations.Nullable;
26-
2725
import org.springframework.scheduling.TaskScheduler;
2826
import org.springframework.util.MultiValueMap;
2927
import org.springframework.web.HttpRequestHandler;
3028
import org.springframework.web.servlet.handler.AbstractHandlerMapping;
3129
import org.springframework.web.servlet.handler.SimpleUrlHandlerMapping;
3230
import org.springframework.web.socket.WebSocketHandler;
3331
import org.springframework.web.socket.server.support.WebSocketHandlerMapping;
34-
import org.springframework.web.util.UrlPathHelper;
3532

3633
/**
3734
* {@link WebSocketHandlerRegistry} with Spring MVC handler mappings for the
@@ -46,8 +43,6 @@ public class ServletWebSocketHandlerRegistry implements WebSocketHandlerRegistry
4643

4744
private int order = 1;
4845

49-
private @Nullable UrlPathHelper urlPathHelper;
50-
5146

5247
public ServletWebSocketHandlerRegistry() {
5348
}
@@ -74,27 +69,6 @@ public int getOrder() {
7469
return this.order;
7570
}
7671

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-
9872

9973
/**
10074
* Whether there are any endpoint SockJS registrations without a TaskScheduler.
@@ -134,9 +108,6 @@ public AbstractHandlerMapping getHandlerMapping() {
134108
WebSocketHandlerMapping hm = new WebSocketHandlerMapping();
135109
hm.setUrlMap(urlMap);
136110
hm.setOrder(this.order);
137-
if (this.urlPathHelper != null) {
138-
hm.setUrlPathHelper(this.urlPathHelper);
139-
}
140111
return hm;
141112
}
142113

0 commit comments

Comments
 (0)