org.springframework.http.server.ServerHttpResponse



API Populatity

6 Client projects

Project SpringSource/spring-framework in file ...ockjs.transport.session.TestHttpSockJsSession.java (2015-01-13)
@@ -22,7 +22,6 @@ import java.util.List;
 import java.util.Map;
 
 import org.springframework.http.server.ServerHttpRequest;
-import org.springframework.http.server.ServerHttpResponse;
 import org.springframework.web.socket.CloseStatus;
 import org.springframework.web.socket.WebSocketHandler;
 import org.springframework.web.socket.sockjs.SockJsTransportFailureException;
@@ -56,8 +55,8 @@ public class TestHttpSockJsSession extends StreamingSockJsSession {
 	}
 
 	@Override
-	protected boolean isStreaming() {
-		return true;
+	protected byte[] getPrelude(ServerHttpRequest request) {
+		return new byte[0];
 	}
 
 	@Override
Project spring-projects/spring-framework in file ...ockjs.transport.session.TestHttpSockJsSession.java (2015-01-13)
@@ -22,7 +22,6 @@ import java.util.List;
 import java.util.Map;
 
 import org.springframework.http.server.ServerHttpRequest;
-import org.springframework.http.server.ServerHttpResponse;
 import org.springframework.web.socket.CloseStatus;
 import org.springframework.web.socket.WebSocketHandler;
 import org.springframework.web.socket.sockjs.SockJsTransportFailureException;
@@ -56,8 +55,8 @@ public class TestHttpSockJsSession extends StreamingSockJsSession {
 	}
 
 	@Override
-	protected boolean isStreaming() {
-		return true;
+	protected byte[] getPrelude(ServerHttpRequest request) {
+		return new byte[0];
 	}
 
 	@Override
Project SpringSource/spring-framework in file ...ockjs.transport.session.TestHttpSockJsSession.java (2014-12-09)
@@ -21,6 +21,8 @@ import java.util.ArrayList;
 import java.util.List;
 import java.util.Map;
 
+import org.springframework.http.server.ServerHttpRequest;
+import org.springframework.http.server.ServerHttpResponse;
 import org.springframework.web.socket.CloseStatus;
 import org.springframework.web.socket.WebSocketHandler;
 import org.springframework.web.socket.sockjs.SockJsTransportFailureException;
@@ -30,7 +32,7 @@ import org.springframework.web.socket.sockjs.transport.SockJsServiceConfig;
 /**
  * @author Rossen Stoyanchev
  */
-public class TestHttpSockJsSession extends AbstractHttpSockJsSession {
+public class TestHttpSockJsSession extends StreamingSockJsSession {
 
 	private boolean active;