@Configuration
@ConditionalOnProperty(value="shenyu.plugins.websocket.enabled",
havingValue="true",
matchIfMissing=true)
public class WebSocketPluginConfiguration
extends java.lang.Object
| Constructor and Description |
|---|
WebSocketPluginConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient |
reactorNettyWebSocketClient(org.apache.shenyu.common.config.ShenyuConfig shenyuConfig,
org.springframework.beans.factory.ObjectProvider<reactor.netty.http.client.HttpClient> httpClient)
Reactor netty web socket client.
|
org.apache.shenyu.plugin.websocket.WebSocketPlugin |
webSocketPlugin(org.springframework.web.reactive.socket.client.WebSocketClient webSocketClient,
org.springframework.web.reactive.socket.server.WebSocketService webSocketService)
Web socket plugin web socket plugin.
|
org.apache.shenyu.plugin.base.handler.PluginDataHandler |
websocketPluginDataHandler()
Websocket plugin data handler.
|
org.springframework.web.reactive.socket.server.WebSocketService |
webSocketService()
Web socket service.
|
org.apache.shenyu.plugin.api.context.ShenyuContextDecorator |
webSocketShenyuContextDecorator()
Web socket shenyu context decorator.
|
org.apache.shenyu.plugin.base.handler.DiscoveryUpstreamDataHandler |
webSocketUpstreamDataHandler()
websocket discovery upstream data handler.
|
@Bean public org.apache.shenyu.plugin.base.handler.PluginDataHandler websocketPluginDataHandler()
@Bean
public org.apache.shenyu.plugin.websocket.WebSocketPlugin webSocketPlugin(org.springframework.web.reactive.socket.client.WebSocketClient webSocketClient,
org.springframework.web.reactive.socket.server.WebSocketService webSocketService)
webSocketClient - the web socket clientwebSocketService - the web socket service@Bean
public org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient reactorNettyWebSocketClient(org.apache.shenyu.common.config.ShenyuConfig shenyuConfig,
org.springframework.beans.factory.ObjectProvider<reactor.netty.http.client.HttpClient> httpClient)
shenyuConfig - the shenyu confighttpClient - the http client@Bean public org.springframework.web.reactive.socket.server.WebSocketService webSocketService()
@Bean public org.apache.shenyu.plugin.base.handler.DiscoveryUpstreamDataHandler webSocketUpstreamDataHandler()
@Bean public org.apache.shenyu.plugin.api.context.ShenyuContextDecorator webSocketShenyuContextDecorator()
Copyright © 2024 The Apache Software Foundation. All rights reserved.