Browse Source

Move WebSocketExtension to top-level package

pull/423/head
Rossen Stoyanchev 11 years ago
parent
commit
69238ba66f
  1. 2
      spring-websocket/src/main/java/org/springframework/web/socket/WebSocketExtension.java
  2. 1
      spring-websocket/src/main/java/org/springframework/web/socket/WebSocketSession.java
  3. 2
      spring-websocket/src/main/java/org/springframework/web/socket/adapter/JettyWebSocketSession.java
  4. 2
      spring-websocket/src/main/java/org/springframework/web/socket/adapter/StandardWebSocketSession.java
  5. 2
      spring-websocket/src/main/java/org/springframework/web/socket/client/AbstractWebSocketClient.java
  6. 2
      spring-websocket/src/main/java/org/springframework/web/socket/client/endpoint/StandardWebSocketClient.java
  7. 2
      spring-websocket/src/main/java/org/springframework/web/socket/client/jetty/JettyWebSocketClient.java
  8. 2
      spring-websocket/src/main/java/org/springframework/web/socket/server/RequestUpgradeStrategy.java
  9. 2
      spring-websocket/src/main/java/org/springframework/web/socket/server/support/AbstractStandardUpgradeStrategy.java
  10. 2
      spring-websocket/src/main/java/org/springframework/web/socket/server/support/DefaultHandshakeHandler.java
  11. 2
      spring-websocket/src/main/java/org/springframework/web/socket/server/support/GlassFish40RequestUpgradeStrategy.java
  12. 2
      spring-websocket/src/main/java/org/springframework/web/socket/server/support/JettyRequestUpgradeStrategy.java
  13. 2
      spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/session/AbstractHttpSockJsSession.java
  14. 2
      spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/session/WebSocketServerSockJsSession.java
  15. 1
      spring-websocket/src/main/java/org/springframework/web/socket/support/WebSocketHttpHeaders.java
  16. 3
      spring-websocket/src/test/java/org/springframework/web/socket/WebSocketExtensionTests.java
  17. 2
      spring-websocket/src/test/java/org/springframework/web/socket/server/DefaultHandshakeHandlerTests.java
  18. 2
      spring-websocket/src/test/java/org/springframework/web/socket/sockjs/transport/session/TestSockJsSession.java
  19. 1
      spring-websocket/src/test/java/org/springframework/web/socket/support/TestWebSocketSession.java
  20. 1
      spring-websocket/src/test/java/org/springframework/web/socket/support/WebSocketHttpHeadersTests.java

2
spring-websocket/src/main/java/org/springframework/web/socket/support/WebSocketExtension.java → spring-websocket/src/main/java/org/springframework/web/socket/WebSocketExtension.java

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.web.socket.support; package org.springframework.web.socket;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;

1
spring-websocket/src/main/java/org/springframework/web/socket/WebSocketSession.java

@ -24,7 +24,6 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import org.springframework.http.HttpHeaders; import org.springframework.http.HttpHeaders;
import org.springframework.web.socket.support.WebSocketExtension;
/** /**
* A WebSocket session abstraction. Allows sending messages over a WebSocket connection * A WebSocket session abstraction. Allows sending messages over a WebSocket connection

2
spring-websocket/src/main/java/org/springframework/web/socket/adapter/JettyWebSocketSession.java

@ -32,7 +32,7 @@ import org.springframework.web.socket.CloseStatus;
import org.springframework.web.socket.PingMessage; import org.springframework.web.socket.PingMessage;
import org.springframework.web.socket.PongMessage; import org.springframework.web.socket.PongMessage;
import org.springframework.web.socket.TextMessage; import org.springframework.web.socket.TextMessage;
import org.springframework.web.socket.support.WebSocketExtension; import org.springframework.web.socket.WebSocketExtension;
import org.springframework.web.socket.WebSocketSession; import org.springframework.web.socket.WebSocketSession;
/** /**

2
spring-websocket/src/main/java/org/springframework/web/socket/adapter/StandardWebSocketSession.java

@ -36,7 +36,7 @@ import org.springframework.web.socket.PingMessage;
import org.springframework.web.socket.PongMessage; import org.springframework.web.socket.PongMessage;
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.support.WebSocketExtension; import org.springframework.web.socket.WebSocketExtension;
/** /**
* A {@link WebSocketSession} for use with the standard WebSocket for Java API. * A {@link WebSocketSession} for use with the standard WebSocket for Java API.

2
spring-websocket/src/main/java/org/springframework/web/socket/client/AbstractWebSocketClient.java

@ -30,7 +30,7 @@ import org.springframework.util.Assert;
import org.springframework.util.concurrent.ListenableFuture; import org.springframework.util.concurrent.ListenableFuture;
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.support.WebSocketExtension; import org.springframework.web.socket.WebSocketExtension;
import org.springframework.web.socket.support.WebSocketHttpHeaders; import org.springframework.web.socket.support.WebSocketHttpHeaders;
import org.springframework.web.util.UriComponentsBuilder; import org.springframework.web.util.UriComponentsBuilder;

2
spring-websocket/src/main/java/org/springframework/web/socket/client/endpoint/StandardWebSocketClient.java

@ -40,7 +40,7 @@ import org.springframework.web.socket.WebSocketSession;
import org.springframework.web.socket.adapter.StandardWebSocketHandlerAdapter; import org.springframework.web.socket.adapter.StandardWebSocketHandlerAdapter;
import org.springframework.web.socket.adapter.StandardWebSocketSession; import org.springframework.web.socket.adapter.StandardWebSocketSession;
import org.springframework.web.socket.client.AbstractWebSocketClient; import org.springframework.web.socket.client.AbstractWebSocketClient;
import org.springframework.web.socket.support.WebSocketExtension; import org.springframework.web.socket.WebSocketExtension;
/** /**
* Initiates WebSocket requests to a WebSocket server programatically through the standard * Initiates WebSocket requests to a WebSocket server programatically through the standard

2
spring-websocket/src/main/java/org/springframework/web/socket/client/jetty/JettyWebSocketClient.java

@ -38,7 +38,7 @@ import org.springframework.web.socket.WebSocketSession;
import org.springframework.web.socket.adapter.JettyWebSocketHandlerAdapter; import org.springframework.web.socket.adapter.JettyWebSocketHandlerAdapter;
import org.springframework.web.socket.adapter.JettyWebSocketSession; import org.springframework.web.socket.adapter.JettyWebSocketSession;
import org.springframework.web.socket.client.AbstractWebSocketClient; import org.springframework.web.socket.client.AbstractWebSocketClient;
import org.springframework.web.socket.support.WebSocketExtension; import org.springframework.web.socket.WebSocketExtension;
import org.springframework.web.util.UriComponents; import org.springframework.web.util.UriComponents;
import org.springframework.web.util.UriComponentsBuilder; import org.springframework.web.util.UriComponentsBuilder;

2
spring-websocket/src/main/java/org/springframework/web/socket/server/RequestUpgradeStrategy.java

@ -21,7 +21,7 @@ import java.util.Map;
import org.springframework.http.server.ServerHttpRequest; import org.springframework.http.server.ServerHttpRequest;
import org.springframework.http.server.ServerHttpResponse; import org.springframework.http.server.ServerHttpResponse;
import org.springframework.web.socket.support.WebSocketExtension; import org.springframework.web.socket.WebSocketExtension;
import org.springframework.web.socket.WebSocketHandler; import org.springframework.web.socket.WebSocketHandler;
/** /**

2
spring-websocket/src/main/java/org/springframework/web/socket/server/support/AbstractStandardUpgradeStrategy.java

@ -33,7 +33,7 @@ import org.springframework.http.server.ServerHttpRequest;
import org.springframework.http.server.ServerHttpResponse; import org.springframework.http.server.ServerHttpResponse;
import org.springframework.http.server.ServletServerHttpRequest; import org.springframework.http.server.ServletServerHttpRequest;
import org.springframework.util.Assert; import org.springframework.util.Assert;
import org.springframework.web.socket.support.WebSocketExtension; import org.springframework.web.socket.WebSocketExtension;
import org.springframework.web.socket.WebSocketHandler; import org.springframework.web.socket.WebSocketHandler;
import org.springframework.web.socket.adapter.StandardWebSocketHandlerAdapter; import org.springframework.web.socket.adapter.StandardWebSocketHandlerAdapter;
import org.springframework.web.socket.adapter.StandardWebSocketSession; import org.springframework.web.socket.adapter.StandardWebSocketSession;

2
spring-websocket/src/main/java/org/springframework/web/socket/server/support/DefaultHandshakeHandler.java

@ -38,7 +38,7 @@ import org.springframework.web.socket.server.HandshakeFailureException;
import org.springframework.web.socket.server.HandshakeHandler; import org.springframework.web.socket.server.HandshakeHandler;
import org.springframework.web.socket.server.RequestUpgradeStrategy; import org.springframework.web.socket.server.RequestUpgradeStrategy;
import org.springframework.web.socket.support.SubProtocolCapable; import org.springframework.web.socket.support.SubProtocolCapable;
import org.springframework.web.socket.support.WebSocketExtension; import org.springframework.web.socket.WebSocketExtension;
import org.springframework.web.socket.support.WebSocketHandlerDecorator; import org.springframework.web.socket.support.WebSocketHandlerDecorator;
import org.springframework.web.socket.support.WebSocketHttpHeaders; import org.springframework.web.socket.support.WebSocketHttpHeaders;

2
spring-websocket/src/main/java/org/springframework/web/socket/server/support/GlassFish40RequestUpgradeStrategy.java

@ -26,7 +26,7 @@ import org.glassfish.tyrus.core.EndpointWrapper;
import org.glassfish.tyrus.spi.SPIEndpoint; import org.glassfish.tyrus.spi.SPIEndpoint;
import org.glassfish.tyrus.websockets.WebSocketApplication; import org.glassfish.tyrus.websockets.WebSocketApplication;
import org.springframework.util.ClassUtils; import org.springframework.util.ClassUtils;
import org.springframework.web.socket.support.WebSocketExtension; import org.springframework.web.socket.WebSocketExtension;
/** /**
* Extension of the {@link AbstractGlassFishRequestUpgradeStrategy} that provides support * Extension of the {@link AbstractGlassFishRequestUpgradeStrategy} that provides support

2
spring-websocket/src/main/java/org/springframework/web/socket/server/support/JettyRequestUpgradeStrategy.java

@ -40,7 +40,7 @@ import org.springframework.http.server.ServletServerHttpRequest;
import org.springframework.http.server.ServletServerHttpResponse; import org.springframework.http.server.ServletServerHttpResponse;
import org.springframework.util.Assert; import org.springframework.util.Assert;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
import org.springframework.web.socket.support.WebSocketExtension; import org.springframework.web.socket.WebSocketExtension;
import org.springframework.web.socket.WebSocketHandler; import org.springframework.web.socket.WebSocketHandler;
import org.springframework.web.socket.adapter.JettyWebSocketHandlerAdapter; import org.springframework.web.socket.adapter.JettyWebSocketHandlerAdapter;
import org.springframework.web.socket.adapter.JettyWebSocketSession; import org.springframework.web.socket.adapter.JettyWebSocketSession;

2
spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/session/AbstractHttpSockJsSession.java

@ -37,7 +37,7 @@ import org.springframework.web.socket.sockjs.SockJsException;
import org.springframework.web.socket.sockjs.SockJsTransportFailureException; import org.springframework.web.socket.sockjs.SockJsTransportFailureException;
import org.springframework.web.socket.sockjs.support.frame.SockJsFrame; import org.springframework.web.socket.sockjs.support.frame.SockJsFrame;
import org.springframework.web.socket.sockjs.support.frame.SockJsFrame.FrameFormat; import org.springframework.web.socket.sockjs.support.frame.SockJsFrame.FrameFormat;
import org.springframework.web.socket.support.WebSocketExtension; import org.springframework.web.socket.WebSocketExtension;
/** /**
* An abstract base class for use with HTTP transport based SockJS sessions. * An abstract base class for use with HTTP transport based SockJS sessions.

2
spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/session/WebSocketServerSockJsSession.java

@ -28,7 +28,7 @@ import org.springframework.util.Assert;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
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.support.WebSocketExtension; import org.springframework.web.socket.WebSocketExtension;
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.NativeWebSocketSession; import org.springframework.web.socket.adapter.NativeWebSocketSession;

1
spring-websocket/src/main/java/org/springframework/web/socket/support/WebSocketHttpHeaders.java

@ -25,6 +25,7 @@ import java.util.Set;
import org.springframework.http.HttpHeaders; import org.springframework.http.HttpHeaders;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
import org.springframework.web.socket.WebSocketExtension;
/** /**
* An {@link org.springframework.http.HttpHeaders} variant that adds support for * An {@link org.springframework.http.HttpHeaders} variant that adds support for

3
spring-websocket/src/test/java/org/springframework/web/socket/WebSocketExtensionTests.java

@ -20,12 +20,11 @@ import java.util.List;
import org.hamcrest.Matchers; import org.hamcrest.Matchers;
import org.junit.Test; import org.junit.Test;
import org.springframework.web.socket.support.WebSocketExtension;
import static org.junit.Assert.*; import static org.junit.Assert.*;
/** /**
* Test fixture for {@link org.springframework.web.socket.support.WebSocketExtension} * Test fixture for {@link WebSocketExtension}
* @author Brian Clozel * @author Brian Clozel
*/ */
public class WebSocketExtensionTests { public class WebSocketExtensionTests {

2
spring-websocket/src/test/java/org/springframework/web/socket/server/DefaultHandshakeHandlerTests.java

@ -28,7 +28,7 @@ import org.mockito.MockitoAnnotations;
import org.springframework.web.socket.AbstractHttpRequestTests; import org.springframework.web.socket.AbstractHttpRequestTests;
import org.springframework.web.socket.server.support.DefaultHandshakeHandler; import org.springframework.web.socket.server.support.DefaultHandshakeHandler;
import org.springframework.web.socket.support.SubProtocolCapable; import org.springframework.web.socket.support.SubProtocolCapable;
import org.springframework.web.socket.support.WebSocketExtension; import org.springframework.web.socket.WebSocketExtension;
import org.springframework.web.socket.WebSocketHandler; import org.springframework.web.socket.WebSocketHandler;
import org.springframework.web.socket.adapter.TextWebSocketHandlerAdapter; import org.springframework.web.socket.adapter.TextWebSocketHandlerAdapter;
import org.springframework.web.socket.support.WebSocketHttpHeaders; import org.springframework.web.socket.support.WebSocketHttpHeaders;

2
spring-websocket/src/test/java/org/springframework/web/socket/sockjs/transport/session/TestSockJsSession.java

@ -26,7 +26,7 @@ import java.util.Map;
import org.springframework.http.HttpHeaders; import org.springframework.http.HttpHeaders;
import org.springframework.web.socket.CloseStatus; import org.springframework.web.socket.CloseStatus;
import org.springframework.web.socket.support.WebSocketExtension; import org.springframework.web.socket.WebSocketExtension;
import org.springframework.web.socket.WebSocketHandler; import org.springframework.web.socket.WebSocketHandler;
import org.springframework.web.socket.sockjs.support.frame.SockJsFrame; import org.springframework.web.socket.sockjs.support.frame.SockJsFrame;

1
spring-websocket/src/test/java/org/springframework/web/socket/support/TestWebSocketSession.java

@ -27,6 +27,7 @@ import java.util.Map;
import org.springframework.http.HttpHeaders; import org.springframework.http.HttpHeaders;
import org.springframework.web.socket.CloseStatus; import org.springframework.web.socket.CloseStatus;
import org.springframework.web.socket.WebSocketExtension;
import org.springframework.web.socket.WebSocketMessage; import org.springframework.web.socket.WebSocketMessage;
import org.springframework.web.socket.WebSocketSession; import org.springframework.web.socket.WebSocketSession;

1
spring-websocket/src/test/java/org/springframework/web/socket/support/WebSocketHttpHeadersTests.java

@ -22,6 +22,7 @@ import java.util.List;
import org.hamcrest.Matchers; import org.hamcrest.Matchers;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;
import org.springframework.web.socket.WebSocketExtension;
import static org.junit.Assert.*; import static org.junit.Assert.*;

Loading…
Cancel
Save