Skip to content

Commit e1e0019

Browse files
authored
Merge branch 'spring-projects:main' into main
2 parents 7d9dc40 + 788b66f commit e1e0019

File tree

1 file changed

+1
-28
lines changed

1 file changed

+1
-28
lines changed

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

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -22,18 +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;
29-
import org.springframework.util.PathMatcher;
3027
import org.springframework.web.HttpRequestHandler;
3128
import org.springframework.web.servlet.handler.AbstractHandlerMapping;
3229
import org.springframework.web.servlet.handler.SimpleUrlHandlerMapping;
3330
import org.springframework.web.socket.WebSocketHandler;
3431
import org.springframework.web.socket.server.support.WebSocketHandlerMapping;
35-
import org.springframework.web.util.UrlPathHelper;
36-
import org.springframework.web.util.pattern.PathPatternParser;
3732

3833
/**
3934
* {@link WebSocketHandlerRegistry} with Spring MVC handler mappings for the
@@ -48,8 +43,6 @@ public class ServletWebSocketHandlerRegistry implements WebSocketHandlerRegistry
4843

4944
private int order = 1;
5045

51-
private @Nullable UrlPathHelper urlPathHelper;
52-
5346

5447
public ServletWebSocketHandlerRegistry() {
5548
}
@@ -76,23 +69,6 @@ public int getOrder() {
7669
return this.order;
7770
}
7871

79-
/**
80-
* Set the UrlPathHelper to configure on the {@code SimpleUrlHandlerMapping}
81-
* 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}.
85-
*/
86-
@Deprecated(since = "7.0", forRemoval = true)
87-
public void setUrlPathHelper(@Nullable UrlPathHelper urlPathHelper) {
88-
this.urlPathHelper = urlPathHelper;
89-
}
90-
91-
@Deprecated(since = "7.0", forRemoval = true)
92-
public @Nullable UrlPathHelper getUrlPathHelper() {
93-
return this.urlPathHelper;
94-
}
95-
9672

9773
/**
9874
* Whether there are any endpoint SockJS registrations without a TaskScheduler.
@@ -132,9 +108,6 @@ public AbstractHandlerMapping getHandlerMapping() {
132108
WebSocketHandlerMapping hm = new WebSocketHandlerMapping();
133109
hm.setUrlMap(urlMap);
134110
hm.setOrder(this.order);
135-
if (this.urlPathHelper != null) {
136-
hm.setUrlPathHelper(this.urlPathHelper);
137-
}
138111
return hm;
139112
}
140113

0 commit comments

Comments
 (0)