@Configuration
@ConditionalOnClass(value=org.apache.shenyu.sync.data.http.HttpSyncDataService.class)
@ConditionalOnProperty(prefix="shenyu.sync.http",
name="url")
public class HttpSyncDataConfiguration
extends java.lang.Object
| Constructor and Description |
|---|
HttpSyncDataConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.shenyu.sync.data.http.AccessTokenManager |
accessTokenManager(org.apache.shenyu.sync.data.http.config.HttpConfig httpConfig,
okhttp3.OkHttpClient okHttpClient)
AccessTokenManager.
|
org.apache.shenyu.sync.data.http.config.HttpConfig |
httpConfig()
Http config http config.
|
org.apache.shenyu.sync.data.api.SyncDataService |
httpSyncDataService(org.springframework.beans.factory.ObjectProvider<org.apache.shenyu.sync.data.http.config.HttpConfig> httpConfig,
org.springframework.beans.factory.ObjectProvider<org.apache.shenyu.sync.data.api.PluginDataSubscriber> pluginSubscriber,
org.springframework.beans.factory.ObjectProvider<okhttp3.OkHttpClient> okHttpClient,
org.springframework.beans.factory.ObjectProvider<java.util.List<org.apache.shenyu.sync.data.api.MetaDataSubscriber>> metaSubscribers,
org.springframework.beans.factory.ObjectProvider<java.util.List<org.apache.shenyu.sync.data.api.AuthDataSubscriber>> authSubscribers,
org.springframework.beans.factory.ObjectProvider<org.apache.shenyu.sync.data.http.AccessTokenManager> accessTokenManager,
org.springframework.beans.factory.ObjectProvider<java.util.List<org.apache.shenyu.sync.data.api.ProxySelectorDataSubscriber>> proxySelectorDataSubscribers,
org.springframework.beans.factory.ObjectProvider<java.util.List<org.apache.shenyu.sync.data.api.DiscoveryUpstreamDataSubscriber>> discoveryUpstreamDataSubscribers)
Http sync data service.
|
okhttp3.OkHttpClient |
okHttpClient(org.apache.shenyu.sync.data.http.config.HttpConfig httpConfig)
Rest template.
|
@Bean @ConfigurationProperties(prefix="shenyu.sync.http") public org.apache.shenyu.sync.data.http.config.HttpConfig httpConfig()
@Bean @Qualifier(value="httpSyncClient") public okhttp3.OkHttpClient okHttpClient(org.apache.shenyu.sync.data.http.config.HttpConfig httpConfig)
httpConfig - the http config@Bean
public org.apache.shenyu.sync.data.http.AccessTokenManager accessTokenManager(org.apache.shenyu.sync.data.http.config.HttpConfig httpConfig,
@Qualifier(value="httpSyncClient")
okhttp3.OkHttpClient okHttpClient)
httpConfig - the http config.okHttpClient - the rest okHttpClient.@Bean
public org.apache.shenyu.sync.data.api.SyncDataService httpSyncDataService(org.springframework.beans.factory.ObjectProvider<org.apache.shenyu.sync.data.http.config.HttpConfig> httpConfig,
org.springframework.beans.factory.ObjectProvider<org.apache.shenyu.sync.data.api.PluginDataSubscriber> pluginSubscriber,
@Qualifier(value="httpSyncClient")
org.springframework.beans.factory.ObjectProvider<okhttp3.OkHttpClient> okHttpClient,
org.springframework.beans.factory.ObjectProvider<java.util.List<org.apache.shenyu.sync.data.api.MetaDataSubscriber>> metaSubscribers,
org.springframework.beans.factory.ObjectProvider<java.util.List<org.apache.shenyu.sync.data.api.AuthDataSubscriber>> authSubscribers,
org.springframework.beans.factory.ObjectProvider<org.apache.shenyu.sync.data.http.AccessTokenManager> accessTokenManager,
org.springframework.beans.factory.ObjectProvider<java.util.List<org.apache.shenyu.sync.data.api.ProxySelectorDataSubscriber>> proxySelectorDataSubscribers,
org.springframework.beans.factory.ObjectProvider<java.util.List<org.apache.shenyu.sync.data.api.DiscoveryUpstreamDataSubscriber>> discoveryUpstreamDataSubscribers)
httpConfig - the http configpluginSubscriber - the plugin subscriberokHttpClient - the ok http clientmetaSubscribers - the meta subscribersauthSubscribers - the auth subscribersaccessTokenManager - the access token managerproxySelectorDataSubscribers - the proxySelectorData subscribersdiscoveryUpstreamDataSubscribers - the discoveryUpstreamData subscribersCopyright © 2024 The Apache Software Foundation. All rights reserved.