Commit f7f53e4e authored by Phillip Webb's avatar Phillip Webb

Fix for upstream Spring 4.0 changes

parent 322b0377
...@@ -23,9 +23,9 @@ import org.apache.commons.logging.LogFactory; ...@@ -23,9 +23,9 @@ import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.socket.TextMessage; import org.springframework.web.socket.TextMessage;
import org.springframework.web.socket.WebSocketSession; import org.springframework.web.socket.WebSocketSession;
import org.springframework.web.socket.adapter.TextWebSocketHandlerAdapter; import org.springframework.web.socket.handler.TextWebSocketHandler;
public class SimpleClientWebSocketHandler extends TextWebSocketHandlerAdapter { public class SimpleClientWebSocketHandler extends TextWebSocketHandler {
protected Log logger = LogFactory.getLog(SimpleClientWebSocketHandler.class); protected Log logger = LogFactory.getLog(SimpleClientWebSocketHandler.class);
......
...@@ -29,7 +29,7 @@ import org.springframework.boot.web.SpringBootServletInitializer; ...@@ -29,7 +29,7 @@ import org.springframework.boot.web.SpringBootServletInitializer;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.WebSocketHandler; import org.springframework.web.socket.WebSocketHandler;
import org.springframework.web.socket.support.PerConnectionWebSocketHandler; import org.springframework.web.socket.handler.PerConnectionWebSocketHandler;
@Configuration @Configuration
@EnableAutoConfiguration @EnableAutoConfiguration
......
...@@ -23,12 +23,12 @@ import org.springframework.web.socket.CloseStatus; ...@@ -23,12 +23,12 @@ import org.springframework.web.socket.CloseStatus;
import org.springframework.web.socket.TextMessage; import org.springframework.web.socket.TextMessage;
import org.springframework.web.socket.WebSocketHandler; import org.springframework.web.socket.WebSocketHandler;
import org.springframework.web.socket.WebSocketSession; import org.springframework.web.socket.WebSocketSession;
import org.springframework.web.socket.adapter.TextWebSocketHandlerAdapter; import org.springframework.web.socket.handler.TextWebSocketHandler;
/** /**
* Echo messages by implementing a Spring {@link WebSocketHandler} abstraction. * Echo messages by implementing a Spring {@link WebSocketHandler} abstraction.
*/ */
public class EchoWebSocketHandler extends TextWebSocketHandlerAdapter { public class EchoWebSocketHandler extends TextWebSocketHandler {
private static Logger logger = LoggerFactory.getLogger(EchoWebSocketHandler.class); private static Logger logger = LoggerFactory.getLogger(EchoWebSocketHandler.class);
......
...@@ -25,9 +25,9 @@ import java.util.concurrent.atomic.AtomicInteger; ...@@ -25,9 +25,9 @@ import java.util.concurrent.atomic.AtomicInteger;
import org.springframework.web.socket.CloseStatus; import org.springframework.web.socket.CloseStatus;
import org.springframework.web.socket.TextMessage; import org.springframework.web.socket.TextMessage;
import org.springframework.web.socket.WebSocketSession; import org.springframework.web.socket.WebSocketSession;
import org.springframework.web.socket.adapter.TextWebSocketHandlerAdapter; import org.springframework.web.socket.handler.TextWebSocketHandler;
public class SnakeWebSocketHandler extends TextWebSocketHandlerAdapter { public class SnakeWebSocketHandler extends TextWebSocketHandler {
public static final int PLAYFIELD_WIDTH = 640; public static final int PLAYFIELD_WIDTH = 640;
public static final int PLAYFIELD_HEIGHT = 480; public static final int PLAYFIELD_HEIGHT = 480;
......
...@@ -37,7 +37,7 @@ import org.springframework.context.ConfigurableApplicationContext; ...@@ -37,7 +37,7 @@ import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.client.WebSocketConnectionManager; import org.springframework.web.socket.client.WebSocketConnectionManager;
import org.springframework.web.socket.client.endpoint.StandardWebSocketClient; import org.springframework.web.socket.client.standard.StandardWebSocketClient;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment