Skip to content

Commit

Permalink
Merge branch 'spring-projects:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
dark2momo authored Feb 28, 2025
2 parents b350138 + 788b66f commit 11677ac
Showing 1 changed file with 0 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,13 @@
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;
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
Expand All @@ -46,8 +43,6 @@ public class ServletWebSocketHandlerRegistry implements WebSocketHandlerRegistry

private int order = 1;

private @Nullable UrlPathHelper urlPathHelper;


public ServletWebSocketHandlerRegistry() {
}
Expand All @@ -74,27 +69,6 @@ public int getOrder() {
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.
Expand Down Expand Up @@ -134,9 +108,6 @@ public AbstractHandlerMapping getHandlerMapping() {
WebSocketHandlerMapping hm = new WebSocketHandlerMapping();
hm.setUrlMap(urlMap);
hm.setOrder(this.order);
if (this.urlPathHelper != null) {
hm.setUrlPathHelper(this.urlPathHelper);
}
return hm;
}

Expand Down

0 comments on commit 11677ac

Please sign in to comment.