public class WebSocketUpgradeHandlerPredicate extends Object implements BiPredicate<Object,ServerWebExchange>
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
.Constructor and Description |
---|
WebSocketUpgradeHandlerPredicate() |
Modifier and Type | Method and Description |
---|---|
boolean |
test(Object handler,
ServerWebExchange exchange) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
and, negate, or
public boolean test(Object handler, ServerWebExchange exchange)
test
in interface BiPredicate<Object,ServerWebExchange>