@ -91,8 +91,8 @@ public class DefaultDocumentLoader implements DocumentLoader {
@@ -91,8 +91,8 @@ public class DefaultDocumentLoader implements DocumentLoader {
@ -79,6 +79,7 @@ public final class BinaryMessage extends WebSocketMessage<ByteBuffer> {
@@ -79,6 +79,7 @@ public final class BinaryMessage extends WebSocketMessage<ByteBuffer> {
@ -44,6 +41,7 @@ public final class TextMessage extends WebSocketMessage<String> {
@@ -44,6 +41,7 @@ public final class TextMessage extends WebSocketMessage<String> {
@ -39,12 +39,12 @@ public class JettyWebSocketListenerAdapter implements WebSocketListener {
@@ -39,12 +39,12 @@ public class JettyWebSocketListenerAdapter implements WebSocketListener {
@ -48,7 +48,7 @@ public class StandardWebSocketSessionAdapter extends AbstractWebSocketSesssionAd
@@ -48,7 +48,7 @@ public class StandardWebSocketSessionAdapter extends AbstractWebSocketSesssionAd
@ -57,10 +57,11 @@ public class WebSocketConnectionManager extends ConnectionManagerSupport {
@@ -57,10 +57,11 @@ public class WebSocketConnectionManager extends ConnectionManagerSupport {
@ -88,7 +89,7 @@ public class WebSocketConnectionManager extends ConnectionManagerSupport {
@@ -88,7 +89,7 @@ public class WebSocketConnectionManager extends ConnectionManagerSupport {
@ -61,14 +61,14 @@ public class EndpointConnectionManager extends ConnectionManagerSupport implemen
@@ -61,14 +61,14 @@ public class EndpointConnectionManager extends ConnectionManagerSupport implemen
@ -62,15 +62,16 @@ public class StandardWebSocketClient implements WebSocketClient {
@@ -62,15 +62,16 @@ public class StandardWebSocketClient implements WebSocketClient {
@ -79,8 +80,8 @@ public class StandardWebSocketClient implements WebSocketClient {
@@ -79,8 +80,8 @@ public class StandardWebSocketClient implements WebSocketClient {
@ -57,7 +57,7 @@ public class DefaultHandshakeHandler implements HandshakeHandler {
@@ -57,7 +57,7 @@ public class DefaultHandshakeHandler implements HandshakeHandler {
@ -123,7 +123,7 @@ public class ServerEndpointExporter implements InitializingBean, BeanPostProcess
@@ -123,7 +123,7 @@ public class ServerEndpointExporter implements InitializingBean, BeanPostProcess
@Override
publicvoidafterPropertiesSet()throwsException{
Assert.notNull(serverContainer,"javax.websocket.server.ServerContainer not available");
Assert.state(this.serverContainer!=null,"javax.websocket.server.ServerContainer not available");
@ -67,26 +66,32 @@ public class ServerEndpointRegistration implements ServerEndpointConfig, BeanFac
@@ -67,26 +66,32 @@ public class ServerEndpointRegistration implements ServerEndpointConfig, BeanFac
Assert.notNull(endpoint,"endpoint must not be null");
this.path=path;
this.endpointProvider=null;
this.endpoint=endpoint;
@ -188,7 +193,7 @@ public class ServerEndpointRegistration implements ServerEndpointConfig, BeanFac
@@ -188,7 +193,7 @@ public class ServerEndpointRegistration implements ServerEndpointConfig, BeanFac
@ -61,16 +62,17 @@ public class WebSocketHttpRequestHandler implements HttpRequestHandler {
@@ -61,16 +62,17 @@ public class WebSocketHttpRequestHandler implements HttpRequestHandler {
@ -58,24 +57,26 @@ public abstract class AbstractSockJsSession implements ConfigurableWebSocketSess
@@ -58,24 +57,26 @@ public abstract class AbstractSockJsSession implements ConfigurableWebSocketSess
Assert.notNull(sessionId,"sessionId must not be null");
Assert.notNull(webSocketHandler,"webSocketHandler must not be null");
this.id=sessionId;
this.handler=webSocketHandler;
this.sockJsConfig=config;
@ -191,7 +192,7 @@ public abstract class AbstractSockJsSession implements ConfigurableWebSocketSess
@@ -191,7 +192,7 @@ public abstract class AbstractSockJsSession implements ConfigurableWebSocketSess
@ -224,7 +225,8 @@ public abstract class AbstractSockJsSession implements ConfigurableWebSocketSess
@@ -224,7 +225,8 @@ public abstract class AbstractSockJsSession implements ConfigurableWebSocketSess
@ -233,7 +235,8 @@ public abstract class AbstractSockJsSession implements ConfigurableWebSocketSess
@@ -233,7 +235,8 @@ public abstract class AbstractSockJsSession implements ConfigurableWebSocketSess
@ -329,7 +332,7 @@ public abstract class AbstractSockJsSession implements ConfigurableWebSocketSess
@@ -329,7 +332,7 @@ public abstract class AbstractSockJsSession implements ConfigurableWebSocketSess
}
protectedvoidscheduleHeartbeat(){
Assert.notNull(this.sockJsConfig.getTaskScheduler(),"heartbeatScheduler not configured");
Assert.state(this.sockJsConfig.getTaskScheduler()!=null,"heartbeatScheduler not configured");
@ -43,7 +42,7 @@ public class TransportErrorException extends NestedRuntimeException {
@@ -43,7 +42,7 @@ public class TransportErrorException extends NestedRuntimeException {
@ -120,6 +120,7 @@ public class DefaultSockJsService extends AbstractSockJsService {
@@ -120,6 +120,7 @@ public class DefaultSockJsService extends AbstractSockJsService {
@ -56,19 +55,22 @@ public class SockJsHttpRequestHandler implements HttpRequestHandler {
@@ -56,19 +55,22 @@ public class SockJsHttpRequestHandler implements HttpRequestHandler {
@ -48,7 +48,7 @@ public class EventSourceTransportHandler extends AbstractHttpSendingTransportHan
@@ -48,7 +48,7 @@ public class EventSourceTransportHandler extends AbstractHttpSendingTransportHan
@ -45,6 +45,10 @@ public class HtmlFileTransportHandler extends AbstractHttpSendingTransportHandle
@@ -45,6 +45,10 @@ public class HtmlFileTransportHandler extends AbstractHttpSendingTransportHandle
privatestaticfinalStringPARTIAL_HTML_CONTENT;
// Safari needs at least 1024 bytes to parse the website.
@ -61,11 +65,8 @@ public class HtmlFileTransportHandler extends AbstractHttpSendingTransportHandle
@@ -61,11 +65,8 @@ public class HtmlFileTransportHandler extends AbstractHttpSendingTransportHandle
" </script>"
);
// Safari needs at least 1024 bytes to parse the website.
@ -84,7 +85,7 @@ public class HtmlFileTransportHandler extends AbstractHttpSendingTransportHandle
@@ -84,7 +85,7 @@ public class HtmlFileTransportHandler extends AbstractHttpSendingTransportHandle
@ -51,7 +51,7 @@ public class JsonpPollingTransportHandler extends AbstractHttpSendingTransportHa
@@ -51,7 +51,7 @@ public class JsonpPollingTransportHandler extends AbstractHttpSendingTransportHa
@ -32,6 +33,7 @@ public class PollingSockJsSession extends AbstractHttpSockJsSession {
@@ -32,6 +33,7 @@ public class PollingSockJsSession extends AbstractHttpSockJsSession {
@ -46,7 +45,7 @@ public class SockJsWebSocketHandler extends TextWebSocketHandlerAdapter {
@@ -46,7 +45,7 @@ public class SockJsWebSocketHandler extends TextWebSocketHandlerAdapter {
@ -54,9 +53,9 @@ public class SockJsWebSocketHandler extends TextWebSocketHandlerAdapter {
@@ -54,9 +53,9 @@ public class SockJsWebSocketHandler extends TextWebSocketHandlerAdapter {
@ -48,6 +47,7 @@ public class WebSocketServerSockJsSession extends AbstractSockJsSession {
@@ -48,6 +47,7 @@ public class WebSocketServerSockJsSession extends AbstractSockJsSession {
@ -75,7 +75,7 @@ public class WebSocketServerSockJsSession extends AbstractSockJsSession {
@@ -75,7 +75,7 @@ public class WebSocketServerSockJsSession extends AbstractSockJsSession {
@ -51,10 +50,11 @@ public class WebSocketTransportHandler implements ConfigurableTransportHandler,
@@ -51,10 +50,11 @@ public class WebSocketTransportHandler implements ConfigurableTransportHandler,
@ -53,7 +52,7 @@ public class XhrPollingTransportHandler extends AbstractHttpSendingTransportHand
@@ -53,7 +52,7 @@ public class XhrPollingTransportHandler extends AbstractHttpSendingTransportHand
@ -49,7 +48,7 @@ public class XhrStreamingTransportHandler extends AbstractHttpSendingTransportHa
@@ -49,7 +48,7 @@ public class XhrStreamingTransportHandler extends AbstractHttpSendingTransportHa
@ -43,7 +43,7 @@ public class BeanCreatingHandlerProvider<T> implements BeanFactoryAware {
@@ -43,7 +43,7 @@ public class BeanCreatingHandlerProvider<T> implements BeanFactoryAware {
Assert.notNull(handlerType,"handlerType is required");
Assert.notNull(handlerType,"handlerType must not be null");
this.handlerType=handlerType;
}
@ -83,7 +83,7 @@ public class BeanCreatingHandlerProvider<T> implements BeanFactoryAware {
@@ -83,7 +83,7 @@ public class BeanCreatingHandlerProvider<T> implements BeanFactoryAware {
@ -33,7 +32,7 @@ public class WebSocketHandlerDecorator implements WebSocketHandler {
@@ -33,7 +32,7 @@ public class WebSocketHandlerDecorator implements WebSocketHandler {
Assert.notNull(delegate,"delegate must not be null");
this.delegate=delegate;
}
@ -43,7 +42,7 @@ public class WebSocketHandlerDecorator implements WebSocketHandler {
@@ -43,7 +42,7 @@ public class WebSocketHandlerDecorator implements WebSocketHandler {
@ -75,7 +74,6 @@ public class WebSocketHandlerDecorator implements WebSocketHandler {
@@ -75,7 +74,6 @@ public class WebSocketHandlerDecorator implements WebSocketHandler {
@ -180,7 +180,7 @@ public class AbstractSockJsServiceTests extends AbstractHttpRequestTests {
@@ -180,7 +180,7 @@ public class AbstractSockJsServiceTests extends AbstractHttpRequestTests {
@ -34,7 +33,7 @@ public class StubSockJsConfig implements SockJsConfiguration {
@@ -34,7 +33,7 @@ public class StubSockJsConfig implements SockJsConfiguration {
@ -43,7 +42,7 @@ public class StubSockJsConfig implements SockJsConfiguration {
@@ -43,7 +42,7 @@ public class StubSockJsConfig implements SockJsConfiguration {
@Override
publiclonggetHeartbeatTime(){
returnheartbeatTime;
returnthis.heartbeatTime;
}
publicvoidsetHeartbeatTime(longheartbeatTime){
@ -52,7 +51,7 @@ public class StubSockJsConfig implements SockJsConfiguration {
@@ -52,7 +51,7 @@ public class StubSockJsConfig implements SockJsConfiguration {
@ -95,7 +94,7 @@ public class TestSockJsSession extends AbstractSockJsSession {
@@ -95,7 +94,7 @@ public class TestSockJsSession extends AbstractSockJsSession {
@ -62,24 +62,24 @@ public class HttpSendingTransportHandlerTests extends AbstractHttpRequestTests
@@ -62,24 +62,24 @@ public class HttpSendingTransportHandlerTests extends AbstractHttpRequestTests
assertFalse("Request should have been rejected",this.servletRequest.isAsyncStarted());
assertEquals("c[2010,\"Another connection still open\"]\n",this.servletResponse.getContentAsString());
@ -89,70 +89,70 @@ public class HttpSendingTransportHandlerTests extends AbstractHttpRequestTests
@@ -89,70 +89,70 @@ public class HttpSendingTransportHandlerTests extends AbstractHttpRequestTests
@ -162,23 +162,23 @@ public class HttpSendingTransportHandlerTests extends AbstractHttpRequestTests
@@ -162,23 +162,23 @@ public class HttpSendingTransportHandlerTests extends AbstractHttpRequestTests
@ -58,7 +57,7 @@ public class TestWebSocketSession implements WebSocketSession {
@@ -58,7 +57,7 @@ public class TestWebSocketSession implements WebSocketSession {
*/
@Override
publicStringgetId(){
returnid;
returnthis.id;
}
/**
@ -73,7 +72,7 @@ public class TestWebSocketSession implements WebSocketSession {
@@ -73,7 +72,7 @@ public class TestWebSocketSession implements WebSocketSession {
*/
@Override
publicURIgetUri(){
returnuri;
returnthis.uri;
}
/**
@ -88,7 +87,7 @@ public class TestWebSocketSession implements WebSocketSession {
@@ -88,7 +87,7 @@ public class TestWebSocketSession implements WebSocketSession {
*/
@Override
publicbooleanisSecure(){
returnsecure;
returnthis.secure;
}
/**
@ -103,7 +102,7 @@ public class TestWebSocketSession implements WebSocketSession {
@@ -103,7 +102,7 @@ public class TestWebSocketSession implements WebSocketSession {
*/
@Override
publicPrincipalgetPrincipal(){
returnprincipal;
returnthis.principal;
}
/**
@ -118,7 +117,7 @@ public class TestWebSocketSession implements WebSocketSession {
@@ -118,7 +117,7 @@ public class TestWebSocketSession implements WebSocketSession {
*/
@Override
publicStringgetRemoteHostName(){
returnremoteHostName;
returnthis.remoteHostName;
}
/**
@ -133,7 +132,7 @@ public class TestWebSocketSession implements WebSocketSession {
@@ -133,7 +132,7 @@ public class TestWebSocketSession implements WebSocketSession {
*/
@Override
publicStringgetRemoteAddress(){
returnremoteAddress;
returnthis.remoteAddress;
}
/**
@ -148,7 +147,7 @@ public class TestWebSocketSession implements WebSocketSession {
@@ -148,7 +147,7 @@ public class TestWebSocketSession implements WebSocketSession {