Fix for upstream Spring 4.0 changes
This commit is contained in:
parent
322b03779d
commit
f7f53e4e64
|
|
@ -23,9 +23,9 @@ import org.apache.commons.logging.LogFactory;
|
|||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.socket.TextMessage;
|
||||
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);
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ import org.springframework.boot.web.SpringBootServletInitializer;
|
|||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.web.socket.WebSocketHandler;
|
||||
import org.springframework.web.socket.support.PerConnectionWebSocketHandler;
|
||||
import org.springframework.web.socket.handler.PerConnectionWebSocketHandler;
|
||||
|
||||
@Configuration
|
||||
@EnableAutoConfiguration
|
||||
|
|
|
|||
|
|
@ -23,12 +23,12 @@ import org.springframework.web.socket.CloseStatus;
|
|||
import org.springframework.web.socket.TextMessage;
|
||||
import org.springframework.web.socket.WebSocketHandler;
|
||||
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.
|
||||
*/
|
||||
public class EchoWebSocketHandler extends TextWebSocketHandlerAdapter {
|
||||
public class EchoWebSocketHandler extends TextWebSocketHandler {
|
||||
|
||||
private static Logger logger = LoggerFactory.getLogger(EchoWebSocketHandler.class);
|
||||
|
||||
|
|
|
|||
|
|
@ -25,9 +25,9 @@ import java.util.concurrent.atomic.AtomicInteger;
|
|||
import org.springframework.web.socket.CloseStatus;
|
||||
import org.springframework.web.socket.TextMessage;
|
||||
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_HEIGHT = 480;
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ import org.springframework.context.ConfigurableApplicationContext;
|
|||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue