@Configuration
@ComponentScan(value="org.apache.shenyu")
@Import(value={ErrorHandlerConfiguration.class,ShenyuExtConfiguration.class,SpringExtConfiguration.class})
public class ShenyuConfiguration
extends Object
| Constructor and Description |
|---|
ShenyuConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.web.server.WebFilter |
crossFilter()
Cross filter web filter.
|
org.springframework.web.reactive.DispatcherHandler |
dispatcherHandler()
init dispatch handler.
|
org.springframework.web.server.WebFilter |
excludeFilter(ExcludePathProperties excludePathProperties)
Rule out the url Filter.
|
org.springframework.web.server.WebFilter |
fileSizeFilter(ShenyuConfig shenyuConfig)
Body web filter web filter.
|
org.apache.shenyu.plugin.api.ShenyuPlugin |
paramTransformPlugin()
Param transform plugin shenyu plugin.
|
org.apache.shenyu.sync.data.api.PluginDataSubscriber |
pluginDataSubscriber(org.springframework.beans.factory.ObjectProvider<List<PluginDataHandler>> pluginDataHandlerList)
Plugin data subscriber plugin data subscriber.
|
org.apache.shenyu.plugin.api.RemoteAddressResolver |
remoteAddressResolver()
Remote address resolver remote address resolver.
|
ShenyuConfig |
shenyuConfig()
shenyu config.
|
ShenyuWebHandler |
shenyuWebHandler(org.springframework.beans.factory.ObjectProvider<List<org.apache.shenyu.plugin.api.ShenyuPlugin>> plugins)
Init ShenyuWebHandler.
|
org.springframework.web.server.WebFilter |
timeWebFilter(ShenyuConfig shenyuConfig)
Init time web filter.
|
org.springframework.web.server.WebFilter |
webSocketWebFilter()
Web socket web filter web filter.
|
@Bean(value="webHandler") public ShenyuWebHandler shenyuWebHandler(org.springframework.beans.factory.ObjectProvider<List<org.apache.shenyu.plugin.api.ShenyuPlugin>> plugins)
plugins - this plugins is All impl ShenyuPlugin.@Bean(value="dispatcherHandler") public org.springframework.web.reactive.DispatcherHandler dispatcherHandler()
DispatcherHandler.@Bean public org.apache.shenyu.plugin.api.ShenyuPlugin paramTransformPlugin()
@Bean public org.apache.shenyu.sync.data.api.PluginDataSubscriber pluginDataSubscriber(org.springframework.beans.factory.ObjectProvider<List<PluginDataHandler>> pluginDataHandlerList)
pluginDataHandlerList - the plugin data handler list@Bean @ConditionalOnMissingBean(value=org.apache.shenyu.plugin.api.RemoteAddressResolver.class) public org.apache.shenyu.plugin.api.RemoteAddressResolver remoteAddressResolver()
@Bean
@Order(value=-100)
@ConditionalOnProperty(name="shenyu.cross.enabled",
havingValue="true")
public org.springframework.web.server.WebFilter crossFilter()
@Bean
@Order(value=-10)
@ConditionalOnProperty(name="shenyu.file.enabled",
havingValue="true")
public org.springframework.web.server.WebFilter fileSizeFilter(ShenyuConfig shenyuConfig)
shenyuConfig - the shenyu config@Bean
@Order(value=-5)
@ConditionalOnProperty(name="shenyu.exclude.enabled",
havingValue="true")
public org.springframework.web.server.WebFilter excludeFilter(ExcludePathProperties excludePathProperties)
excludePathProperties - the exclude path@Bean @ConfigurationProperties(prefix="shenyu") public ShenyuConfig shenyuConfig()
@Bean @Order(value=30) @ConditionalOnProperty(name="shenyu.filterTimeEnable") public org.springframework.web.server.WebFilter timeWebFilter(ShenyuConfig shenyuConfig)
shenyuConfig - the shenyu config@Bean @Order(value=4) public org.springframework.web.server.WebFilter webSocketWebFilter()
Copyright © 2021 The Apache Software Foundation. All rights reserved.