Java Code Examples for org.springframework.web.reactive.socket.server.support.WebSocketHandlerAdapter

The following examples show how to use org.springframework.web.reactive.socket.server.support.WebSocketHandlerAdapter. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
@Test
void servicesAreNotCreatedWithoutLoggingOnClasspath() {
	contextRunner
		.withClassLoader(new FilteredClassLoader(ApplicationLogStreamPublisher.class))
		.withUserConfiguration(LoggingConfiguration.class)
		.run(context -> assertThat(context)
			.doesNotHaveBean(StreamingLogWebSocketHandler.class)
			.doesNotHaveBean(WebSocketHandlerAdapter.class)
			.doesNotHaveBean(HandlerMapping.class)
			.doesNotHaveBean(LogStreamPublisher.class)
			.doesNotHaveBean(ApplicationLogStreamPublisher.class));
}
 
Example 2
@Test
void servicesAreNotCreatedWithoutRequiredBeansOnClasspath() {
	contextRunner
		.run(context -> assertThat(context)
			.doesNotHaveBean(StreamingLogWebSocketHandler.class)
			.doesNotHaveBean(WebSocketHandlerAdapter.class)
			.doesNotHaveBean(HandlerMapping.class)
			.doesNotHaveBean(LogStreamPublisher.class)
			.doesNotHaveBean(ApplicationLogStreamPublisher.class));
}
 
Example 3
@Test
void servicesAreCreatedWithLoggingConfigured() {
	contextRunner
		.withUserConfiguration(LoggingConfiguration.class)
		.run(context -> assertThat(context)
			.hasSingleBean(StreamingLogWebSocketHandler.class)
			.hasSingleBean(WebSocketHandlerAdapter.class)
			.hasSingleBean(HandlerMapping.class)
			.hasSingleBean(LogStreamPublisher.class)
			.hasSingleBean(ApplicationLogStreamPublisher.class));
}
 
Example 4
@Bean
public WebSocketHandlerAdapter handlerAdapter() {
	return new WebSocketHandlerAdapter(webSocketService());
}
 
Example 5
@Bean
@ConditionalOnMissingBean
public WebSocketHandlerAdapter webSocketHandlerAdapter() {
    return new WebSocketHandlerAdapter();
}
 
Example 6
@Bean
public WebSocketHandlerAdapter handlerAdapter() {
	return new WebSocketHandlerAdapter(webSocketService());
}
 
Example 7
Source Project: vertx-spring-boot   Source File: ServerAutoConfiguration.java    License: Apache License 2.0 4 votes vote down vote up
@Bean
public WebSocketHandlerAdapter webSocketHandlerAdapter(WebSocketService webSocketService) {
    return new WebSocketHandlerAdapter(webSocketService);
}
 
Example 8
@Bean
public WebSocketHandlerAdapter handlerAdapter() {
	return new WebSocketHandlerAdapter();
}
 
Example 9
Source Project: webFluxTemplate   Source File: WebSocketRouter.java    License: MIT License 4 votes vote down vote up
@Bean
public WebSocketHandlerAdapter handlerAdapter() {
    return new WebSocketHandlerAdapter(webSocketService());
}
 
Example 10
@Bean
public WebSocketHandlerAdapter handlerAdapter() 
{
	return new WebSocketHandlerAdapter();
}
 
Example 11
@Bean
public HandlerAdapter handlerAdapter() {
    return new WebSocketHandlerAdapter();
}
 
Example 12
Source Project: Spring-5.0-Projects   Source File: SpringWebFluxDemoApplication.java    License: MIT License 4 votes vote down vote up
@Bean
public WebSocketHandlerAdapter handlerAdapter() {
	return new WebSocketHandlerAdapter();
}
 
Example 13
@Bean
public WebSocketHandlerAdapter handlerAdapter() {
    return new WebSocketHandlerAdapter();
}
 
Example 14
@Bean
@ConditionalOnMissingBean
public WebSocketHandlerAdapter handlerAdapter() {
	return new WebSocketHandlerAdapter();
}
 
Example 15
@Bean
WebSocketHandlerAdapter handlerAdapter() {
	return new WebSocketHandlerAdapter();
}
 
Example 16
@Bean
WebSocketHandlerAdapter handlerAdapter() {
	return new WebSocketHandlerAdapter();
}
 
Example 17
@Bean
WebSocketHandlerAdapter handlerAdapter() {
	return new WebSocketHandlerAdapter();
}
 
Example 18
@Bean
WebSocketHandlerAdapter handlerAdapter() {
	return new WebSocketHandlerAdapter();
}
 
Example 19
@Bean
WebSocketHandlerAdapter handlerAdapter() {
	return new WebSocketHandlerAdapter();
}
 
Example 20
@Bean
WebSocketHandlerAdapter wsha() {
	return new WebSocketHandlerAdapter();
}
 
Example 21
@Bean
WebSocketHandlerAdapter webSocketHandlerAdapter() {
	return new WebSocketHandlerAdapter();
}
 
Example 22
Source Project: Spring-5.0-Cookbook   Source File: ReactiveChatSocketConfig.java    License: MIT License 4 votes vote down vote up
@Bean
public WebSocketHandlerAdapter handlerAdapter() {
	return new WebSocketHandlerAdapter(webSocketService());
}
 
Example 23
@Bean
WebSocketHandlerAdapter webSocketHandlerAdapter(){
    return new WebSocketHandlerAdapter();
}
 
Example 24
@Bean
public WebSocketHandlerAdapter handlerAdapter() {
    return new WebSocketHandlerAdapter();
}
 
Example 25
Source Project: tools-journey   Source File: WebSocketConfiguration.java    License: Apache License 2.0 4 votes vote down vote up
@Bean
public WebSocketHandlerAdapter handlerAdapter() {
    return new WebSocketHandlerAdapter();
}
 
Example 26
@Bean
public WebSocketHandlerAdapter handlerAdapter() {
	return new WebSocketHandlerAdapter(webSocketService());
}
 
Example 27
Source Project: spring-reactive-playground   Source File: Application.java    License: Apache License 2.0 4 votes vote down vote up
@Bean
public WebSocketHandlerAdapter handlerAdapter() {
	return new WebSocketHandlerAdapter(webSocketService());
}
 
Example 28
Source Project: tutorials   Source File: EmployeeConfig.java    License: MIT License 4 votes vote down vote up
@Bean
public WebSocketHandlerAdapter handlerAdapter() {
    return new WebSocketHandlerAdapter();
}
 
Example 29
Source Project: tutorials   Source File: ReactiveWebSocketConfiguration.java    License: MIT License 4 votes vote down vote up
@Bean
public WebSocketHandlerAdapter handlerAdapter() {
    return new WebSocketHandlerAdapter();
}
 
Example 30
Source Project: soul   Source File: WebSocketConfiguration.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * Handler adapter web socket handler adapter.
 *
 * @return the web socket handler adapter
 */
@Bean
public WebSocketHandlerAdapter handlerAdapter() {
    return new WebSocketHandlerAdapter();
}