Skip to content

Commit 7e9ac12

Browse files
committed
Deprecate UrlPathHelper in ServletWebSocketHandlerRegistry
Closes gh-34508
1 parent c64dae3 commit 7e9ac12

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

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

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 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.
@@ -77,11 +77,20 @@ public int getOrder() {
7777
/**
7878
* Set the UrlPathHelper to configure on the {@code SimpleUrlHandlerMapping}
7979
* 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.
8083
*/
84+
@Deprecated(since = "6.2.4", forRemoval = true)
8185
public void setUrlPathHelper(@Nullable UrlPathHelper urlPathHelper) {
8286
this.urlPathHelper = urlPathHelper;
8387
}
8488

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)
8594
@Nullable
8695
public UrlPathHelper getUrlPathHelper() {
8796
return this.urlPathHelper;

0 commit comments

Comments
 (0)