@Configuration @ConditionalOnWebApplication @ConditionalOnClass(value=org.springframework.web.socket.WebSocketHandler.class) @EnableConfigurationProperties(value=ZuulWebSocketProperties.class) public class ZuulWebSocketConfiguration extends org.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
| Constructor and Description |
|---|
ZuulWebSocketConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
WebSocketHttpHeadersCallback |
basicAuthPrincipalHeadersCallback() |
ProxyWebSocketErrorHandler |
compositeErrorHandler(List<ProxyWebSocketErrorHandler> errorHandlers) |
WebSocketHttpHeadersCallback |
compositeHeadersCallback(List<WebSocketHttpHeadersCallback> headersCallbacks) |
ProxyTargetResolver |
compositeProxyTargetResolver(List<ProxyTargetResolver> resolvers) |
void |
configureMessageBroker(org.springframework.messaging.simp.config.MessageBrokerRegistry config) |
void |
configureWebSocketTransport(org.springframework.web.socket.config.annotation.WebSocketTransportRegistration registration) |
ProxyTargetResolver |
discoveryProxyTargetResolver(org.springframework.cloud.netflix.zuul.filters.ZuulProperties zuulProperties,
org.springframework.cloud.client.discovery.DiscoveryClient discoveryClient) |
void |
init() |
ProxyTargetResolver |
loadBalancedProxyTargetResolver(org.springframework.cloud.netflix.zuul.filters.ZuulProperties zuulProperties,
org.springframework.cloud.client.loadbalancer.LoadBalancerClient loadBalancerClient) |
WebSocketHttpHeadersCallback |
loginCookieHeadersCallback() |
WebSocketHttpHeadersCallback |
oauth2BearerPrincipalHeadersCallback() |
void |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) |
ProxyRedirectFilter |
proxyRedirectFilter(org.springframework.cloud.netflix.zuul.filters.RouteLocator routeLocator) |
ProxyWebSocketErrorHandler |
reconnectErrorHandler() |
void |
registerStompEndpoints(org.springframework.web.socket.config.annotation.StompEndpointRegistry registry) |
org.springframework.web.socket.messaging.WebSocketStompClient |
stompClient(org.springframework.messaging.converter.MessageConverter messageConverter,
org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler taskScheduler) |
org.springframework.scheduling.TaskScheduler |
stompClientTaskScheduler() |
ProxyTargetResolver |
urlProxyTargetResolver(org.springframework.cloud.netflix.zuul.filters.ZuulProperties zuulProperties) |
public void registerStompEndpoints(org.springframework.web.socket.config.annotation.StompEndpointRegistry registry)
registerStompEndpoints in interface org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurerpublic void configureMessageBroker(org.springframework.messaging.simp.config.MessageBrokerRegistry config)
configureMessageBroker in interface org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurerconfigureMessageBroker in class org.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurerpublic void configureWebSocketTransport(org.springframework.web.socket.config.annotation.WebSocketTransportRegistration registration)
configureWebSocketTransport in interface org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurerconfigureWebSocketTransport in class org.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer@Bean @Primary public WebSocketHttpHeadersCallback compositeHeadersCallback(List<WebSocketHttpHeadersCallback> headersCallbacks)
@Bean @ConditionalOnClass(name="org.springframework.security.core.Authentication") public WebSocketHttpHeadersCallback basicAuthPrincipalHeadersCallback()
@Bean @ConditionalOnClass(name="org.springframework.security.core.OAuth2Authentication") public WebSocketHttpHeadersCallback oauth2BearerPrincipalHeadersCallback()
@Bean public WebSocketHttpHeadersCallback loginCookieHeadersCallback()
@Bean public ProxyTargetResolver urlProxyTargetResolver(org.springframework.cloud.netflix.zuul.filters.ZuulProperties zuulProperties)
@Bean public ProxyTargetResolver discoveryProxyTargetResolver(org.springframework.cloud.netflix.zuul.filters.ZuulProperties zuulProperties, org.springframework.cloud.client.discovery.DiscoveryClient discoveryClient)
@Bean public ProxyTargetResolver loadBalancedProxyTargetResolver(org.springframework.cloud.netflix.zuul.filters.ZuulProperties zuulProperties, org.springframework.cloud.client.loadbalancer.LoadBalancerClient loadBalancerClient)
@Bean @Primary public ProxyTargetResolver compositeProxyTargetResolver(List<ProxyTargetResolver> resolvers)
@Bean
@ConditionalOnMissingBean(value=org.springframework.web.socket.messaging.WebSocketStompClient.class)
public org.springframework.web.socket.messaging.WebSocketStompClient stompClient(org.springframework.messaging.converter.MessageConverter messageConverter,
org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler taskScheduler)
@Bean @ConditionalOnMissingBean(value=org.springframework.scheduling.TaskScheduler.class) public org.springframework.scheduling.TaskScheduler stompClientTaskScheduler()
@Bean public ProxyWebSocketErrorHandler reconnectErrorHandler()
@Bean @Primary public ProxyWebSocketErrorHandler compositeErrorHandler(List<ProxyWebSocketErrorHandler> errorHandlers)
@Bean public ProxyRedirectFilter proxyRedirectFilter(org.springframework.cloud.netflix.zuul.filters.RouteLocator routeLocator)
@PostConstruct public void init()
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>Copyright © 2017–2018 Pivotal Software, Inc.. All rights reserved.