Skip to content

Commit f7f53e4

Browse files
author
Phillip Webb
committed
Fix for upstream Spring 4.0 changes
1 parent 322b037 commit f7f53e4

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

spring-boot-samples/spring-boot-sample-websocket/src/main/java/org/springframework/boot/samples/websocket/client/SimpleClientWebSocketHandler.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
import org.springframework.beans.factory.annotation.Autowired;
2424
import org.springframework.web.socket.TextMessage;
2525
import org.springframework.web.socket.WebSocketSession;
26-
import org.springframework.web.socket.adapter.TextWebSocketHandlerAdapter;
26+
import org.springframework.web.socket.handler.TextWebSocketHandler;
2727

28-
public class SimpleClientWebSocketHandler extends TextWebSocketHandlerAdapter {
28+
public class SimpleClientWebSocketHandler extends TextWebSocketHandler {
2929

3030
protected Log logger = LogFactory.getLog(SimpleClientWebSocketHandler.class);
3131

spring-boot-samples/spring-boot-sample-websocket/src/main/java/org/springframework/boot/samples/websocket/config/SampleWebSocketsApplication.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import org.springframework.context.annotation.Bean;
3030
import org.springframework.context.annotation.Configuration;
3131
import org.springframework.web.socket.WebSocketHandler;
32-
import org.springframework.web.socket.support.PerConnectionWebSocketHandler;
32+
import org.springframework.web.socket.handler.PerConnectionWebSocketHandler;
3333

3434
@Configuration
3535
@EnableAutoConfiguration

spring-boot-samples/spring-boot-sample-websocket/src/main/java/org/springframework/boot/samples/websocket/echo/EchoWebSocketHandler.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
import org.springframework.web.socket.TextMessage;
2424
import org.springframework.web.socket.WebSocketHandler;
2525
import org.springframework.web.socket.WebSocketSession;
26-
import org.springframework.web.socket.adapter.TextWebSocketHandlerAdapter;
26+
import org.springframework.web.socket.handler.TextWebSocketHandler;
2727

2828
/**
2929
* Echo messages by implementing a Spring {@link WebSocketHandler} abstraction.
3030
*/
31-
public class EchoWebSocketHandler extends TextWebSocketHandlerAdapter {
31+
public class EchoWebSocketHandler extends TextWebSocketHandler {
3232

3333
private static Logger logger = LoggerFactory.getLogger(EchoWebSocketHandler.class);
3434

spring-boot-samples/spring-boot-sample-websocket/src/main/java/org/springframework/boot/samples/websocket/snake/SnakeWebSocketHandler.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
import org.springframework.web.socket.CloseStatus;
2626
import org.springframework.web.socket.TextMessage;
2727
import org.springframework.web.socket.WebSocketSession;
28-
import org.springframework.web.socket.adapter.TextWebSocketHandlerAdapter;
28+
import org.springframework.web.socket.handler.TextWebSocketHandler;
2929

30-
public class SnakeWebSocketHandler extends TextWebSocketHandlerAdapter {
30+
public class SnakeWebSocketHandler extends TextWebSocketHandler {
3131

3232
public static final int PLAYFIELD_WIDTH = 640;
3333
public static final int PLAYFIELD_HEIGHT = 480;

spring-boot-samples/spring-boot-sample-websocket/src/test/java/org/springframework/boot/samples/websocket/echo/SampleWebSocketsApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
import org.springframework.context.annotation.Bean;
3838
import org.springframework.context.annotation.Configuration;
3939
import org.springframework.web.socket.client.WebSocketConnectionManager;
40-
import org.springframework.web.socket.client.endpoint.StandardWebSocketClient;
40+
import org.springframework.web.socket.client.standard.StandardWebSocketClient;
4141

4242
import static org.junit.Assert.assertEquals;
4343

0 commit comments

Comments
 (0)