public class WebsocketRoutingFilter extends Object implements GlobalFilter, org.springframework.core.Ordered
Modifier and Type | Field and Description |
---|---|
static String |
SEC_WEBSOCKET_PROTOCOL |
Constructor and Description |
---|
WebsocketRoutingFilter(org.springframework.web.reactive.socket.client.WebSocketClient webSocketClient,
org.springframework.web.reactive.socket.server.WebSocketService webSocketService,
org.springframework.beans.factory.ObjectProvider<List<HttpHeadersFilter>> headersFilters) |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Void> |
filter(org.springframework.web.server.ServerWebExchange exchange,
GatewayFilterChain chain)
Process the Web request and (optionally) delegate to the next
WebFilter through the given GatewayFilterChain . |
int |
getOrder() |
public static final String SEC_WEBSOCKET_PROTOCOL
public WebsocketRoutingFilter(org.springframework.web.reactive.socket.client.WebSocketClient webSocketClient, org.springframework.web.reactive.socket.server.WebSocketService webSocketService, org.springframework.beans.factory.ObjectProvider<List<HttpHeadersFilter>> headersFilters)
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
public reactor.core.publisher.Mono<Void> filter(org.springframework.web.server.ServerWebExchange exchange, GatewayFilterChain chain)
GlobalFilter
WebFilter
through the given GatewayFilterChain
.filter
in interface GlobalFilter
exchange
- the current server exchangechain
- provides a way to delegate to the next filterMono<Void>
to indicate when request processing is completeCopyright © 2018 Pivotal Software, Inc.. All rights reserved.