Remove UrlPathHelper in ServletWebSocketHandlerRegistry

See gh-34508
This commit is contained in:
rstoyanchev 2025-02-28 16:20:38 +00:00
parent 6a9783bb1a
commit 788b66feac
1 changed files with 0 additions and 29 deletions

View File

@ -22,8 +22,6 @@ import java.util.List;
import java.util.Map;
import java.util.Objects;
import org.jspecify.annotations.Nullable;
import org.springframework.scheduling.TaskScheduler;
import org.springframework.util.MultiValueMap;
import org.springframework.web.HttpRequestHandler;
@ -31,7 +29,6 @@ import org.springframework.web.servlet.handler.AbstractHandlerMapping;
import org.springframework.web.servlet.handler.SimpleUrlHandlerMapping;
import org.springframework.web.socket.WebSocketHandler;
import org.springframework.web.socket.server.support.WebSocketHandlerMapping;
import org.springframework.web.util.UrlPathHelper;
/**
* {@link WebSocketHandlerRegistry} with Spring MVC handler mappings for the
@ -46,8 +43,6 @@ public class ServletWebSocketHandlerRegistry implements WebSocketHandlerRegistry
private int order = 1;
private @Nullable UrlPathHelper urlPathHelper;
public ServletWebSocketHandlerRegistry() {
}
@ -74,27 +69,6 @@ public class ServletWebSocketHandlerRegistry implements WebSocketHandlerRegistry
return this.order;
}
/**
* Set the UrlPathHelper to configure on the {@code SimpleUrlHandlerMapping}
* used to map handshake requests.
* @deprecated without a replacement since effectively the UrlPathHelper is
* no longer used with {@code PathPatternParser} used by the default in
* all extensions of {@code AbstractHandlerMapping}. To be removed in 7.0.
*/
@Deprecated(since = "6.2.4", forRemoval = true)
public void setUrlPathHelper(@Nullable UrlPathHelper urlPathHelper) {
this.urlPathHelper = urlPathHelper;
}
/**
* Return the configured {@code UrlPathHelper}.
* @deprecated without a replacement; see notice on {@link #setUrlPathHelper}
*/
@Deprecated(since = "6.2.4", forRemoval = true)
public @Nullable UrlPathHelper getUrlPathHelper() {
return this.urlPathHelper;
}
/**
* Whether there are any endpoint SockJS registrations without a TaskScheduler.
@ -134,9 +108,6 @@ public class ServletWebSocketHandlerRegistry implements WebSocketHandlerRegistry
WebSocketHandlerMapping hm = new WebSocketHandlerMapping();
hm.setUrlMap(urlMap);
hm.setOrder(this.order);
if (this.urlPathHelper != null) {
hm.setUrlPathHelper(this.urlPathHelper);
}
return hm;
}