Top Description Constructors Methods
org.springframework.web.reactive.socket.server.support

public Class WebSocketUpgradeHandlerPredicate

extends Object
implements BiPredicate<Object, ServerWebExchange>
Class Inheritance
All Implemented Interfaces
java.util.function.BiPredicate
Imports
java.util.function.BiPredicate, org.springframework.http.HttpMethod, org.springframework.web.reactive.socket.WebSocketHandler, org.springframework.web.server.ServerWebExchange

A predicate for use with org.springframework.web.reactive.handler.AbstractUrlHandlerMapping#setHandlerPredicate to ensure only WebSocket handshake requests are matched to handlers of type WebSocketHandler.
Author
Rossen Stoyanchev
Since
5.3.5

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
test(Object
the first input argument
handler
,
ServerWebExchange
the second input argument
exchange
)

Implements java.util.function.BiPredicate.test.

Evaluates this predicate on the given arguments.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

WebSocketUpgradeHandlerPredicateback to summary
public WebSocketUpgradeHandlerPredicate()

Method Detail

testback to summary
public boolean test(Object handler, ServerWebExchange exchange)

Implements java.util.function.BiPredicate.test.

Doc from java.util.function.BiPredicate.test.

Evaluates this predicate on the given arguments.

Parameters
handler:Object

the first input argument

exchange:ServerWebExchange

the second input argument

Returns:boolean

true if the input arguments match the predicate, otherwise false

Annotations
@Override