Class WebSocketUpgradeHandlerPredicate
java.lang.Object
org.springframework.web.reactive.socket.server.support.WebSocketUpgradeHandlerPredicate
- All Implemented Interfaces:
BiPredicate<Object,
ServerWebExchange>
public class WebSocketUpgradeHandlerPredicate
extends Object
implements BiPredicate<Object,ServerWebExchange>
A predicate for use with
AbstractUrlHandlerMapping.setHandlerPredicate(java.util.function.BiPredicate<java.lang.Object, org.springframework.web.server.ServerWebExchange>)
to ensure only WebSocket handshake requests are matched to handlers of type
WebSocketHandler
.- Since:
- 5.3.5
- Author:
- Rossen Stoyanchev
-
Constructor Details
-
WebSocketUpgradeHandlerPredicate
public WebSocketUpgradeHandlerPredicate()
-
-
Method Details
-
test
- Specified by:
test
in interfaceBiPredicate<Object,
ServerWebExchange>
-