language stringclasses 1
value | owner stringlengths 2 15 | repo stringlengths 2 21 | sha stringlengths 45 45 | message stringlengths 7 36.3k | path stringlengths 1 199 | patch stringlengths 15 102k | is_multipart bool 2
classes |
|---|---|---|---|---|---|---|---|
Other | spring-projects | spring-framework | 3a2c15b0fd5d370f80964b8f4d62b353823e06cf.json | Add flush method to ServerHttpResponse
This is useful to make sure response headers are written to the
underlying response. It is also useful in conjunction with long
running, async requests and HTTP streaming, to ensure the Servlet
response buffer is sent to the client without additional delay and
also causes an IOEx... | spring-websocket/src/main/java/org/springframework/sockjs/server/NestedSockJsRuntimeException.java | @@ -0,0 +1,39 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *... | true |
Other | spring-projects | spring-framework | 3a2c15b0fd5d370f80964b8f4d62b353823e06cf.json | Add flush method to ServerHttpResponse
This is useful to make sure response headers are written to the
underlying response. It is also useful in conjunction with long
running, async requests and HTTP streaming, to ensure the Servlet
response buffer is sent to the client without additional delay and
also causes an IOEx... | spring-websocket/src/main/java/org/springframework/sockjs/server/SockJsFrame.java | @@ -80,8 +80,11 @@ public byte[] getContentBytes() {
}
public String toString() {
- String quoted = this.content.replace("\n", "\\n").replace("\r", "\\r");
- return "SockJsFrame content='" + quoted + "'";
+ String result = this.content;
+ if (result.length() > 80) {
+ result = result.substring(0, 80) + "...... | true |
Other | spring-projects | spring-framework | 3a2c15b0fd5d370f80964b8f4d62b353823e06cf.json | Add flush method to ServerHttpResponse
This is useful to make sure response headers are written to the
underlying response. It is also useful in conjunction with long
running, async requests and HTTP streaming, to ensure the Servlet
response buffer is sent to the client without additional delay and
also causes an IOEx... | spring-websocket/src/main/java/org/springframework/sockjs/server/support/DefaultSockJsService.java | @@ -175,7 +175,7 @@ protected void handleRawWebSocket(ServerHttpRequest request, ServerHttpResponse
}
@Override
- protected void handleRequestInternal(ServerHttpRequest request, ServerHttpResponse response,
+ protected void handleTransportRequest(ServerHttpRequest request, ServerHttpResponse response,
String ... | true |
Other | spring-projects | spring-framework | 3a2c15b0fd5d370f80964b8f4d62b353823e06cf.json | Add flush method to ServerHttpResponse
This is useful to make sure response headers are written to the
underlying response. It is also useful in conjunction with long
running, async requests and HTTP streaming, to ensure the Servlet
response buffer is sent to the client without additional delay and
also causes an IOEx... | spring-websocket/src/main/java/org/springframework/sockjs/server/transport/AbstractHttpSendingTransportHandler.java | @@ -78,7 +78,7 @@ protected void handleRequestInternal(ServerHttpRequest request, ServerHttpRespon
}
else if (httpServerSession.isActive()) {
logger.debug("another " + getTransportType() + " connection still open: " + httpServerSession);
- httpServerSession.writeFrame(response.getBody(), SockJsFrame.closeFr... | true |
Other | spring-projects | spring-framework | 3a2c15b0fd5d370f80964b8f4d62b353823e06cf.json | Add flush method to ServerHttpResponse
This is useful to make sure response headers are written to the
underlying response. It is also useful in conjunction with long
running, async requests and HTTP streaming, to ensure the Servlet
response buffer is sent to the client without additional delay and
also causes an IOEx... | spring-websocket/src/main/java/org/springframework/sockjs/server/transport/AbstractHttpServerSession.java | @@ -16,7 +16,6 @@
package org.springframework.sockjs.server.transport;
import java.io.IOException;
-import java.io.OutputStream;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
@@ -44,7 +43,7 @@ public abstract class AbstractHttpServerSession extends AbstractServerSess... | true |
Other | spring-projects | spring-framework | 3a2c15b0fd5d370f80964b8f4d62b353823e06cf.json | Add flush method to ServerHttpResponse
This is useful to make sure response headers are written to the
underlying response. It is also useful in conjunction with long
running, async requests and HTTP streaming, to ensure the Servlet
response buffer is sent to the client without additional delay and
also causes an IOEx... | spring-websocket/src/main/java/org/springframework/sockjs/server/transport/EventSourceTransportHandler.java | @@ -54,7 +54,7 @@ protected MediaType getContentType() {
protected void writePrelude(ServerHttpRequest request, ServerHttpResponse response) throws IOException {
response.getBody().write('\r');
response.getBody().write('\n');
- response.getBody().flush();
+ response.flush();
}
@Override | true |
Other | spring-projects | spring-framework | 3a2c15b0fd5d370f80964b8f4d62b353823e06cf.json | Add flush method to ServerHttpResponse
This is useful to make sure response headers are written to the
underlying response. It is also useful in conjunction with long
running, async requests and HTTP streaming, to ensure the Servlet
response buffer is sent to the client without additional delay and
also causes an IOEx... | spring-websocket/src/main/java/org/springframework/sockjs/server/transport/HtmlFileTransportHandler.java | @@ -102,7 +102,7 @@ protected void writePrelude(ServerHttpRequest request, ServerHttpResponse respon
String html = String.format(PARTIAL_HTML_CONTENT, callback);
response.getBody().write(html.getBytes("UTF-8"));
- response.getBody().flush();
+ response.flush();
}
@Override | true |
Other | spring-projects | spring-framework | 3a2c15b0fd5d370f80964b8f4d62b353823e06cf.json | Add flush method to ServerHttpResponse
This is useful to make sure response headers are written to the
underlying response. It is also useful in conjunction with long
running, async requests and HTTP streaming, to ensure the Servlet
response buffer is sent to the client without additional delay and
also causes an IOEx... | spring-websocket/src/main/java/org/springframework/sockjs/server/transport/PollingHttpServerSession.java | @@ -15,6 +15,8 @@
*/
package org.springframework.sockjs.server.transport;
+import java.io.IOException;
+
import org.springframework.sockjs.server.SockJsConfiguration;
import org.springframework.sockjs.server.SockJsFrame;
@@ -26,15 +28,15 @@ public PollingHttpServerSession(String sessionId, SockJsConfiguration ... | true |
Other | spring-projects | spring-framework | 3a2c15b0fd5d370f80964b8f4d62b353823e06cf.json | Add flush method to ServerHttpResponse
This is useful to make sure response headers are written to the
underlying response. It is also useful in conjunction with long
running, async requests and HTTP streaming, to ensure the Servlet
response buffer is sent to the client without additional delay and
also causes an IOEx... | spring-websocket/src/main/java/org/springframework/sockjs/server/transport/SockJsWebSocketHandler.java | @@ -92,14 +92,14 @@ public boolean isActive() {
}
@Override
- public void sendMessageInternal(String message) {
+ public void sendMessageInternal(String message) throws IOException {
cancelHeartbeat();
writeFrame(SockJsFrame.messageFrame(message));
scheduleHeartbeat();
}
@Override
- prote... | true |
Other | spring-projects | spring-framework | 3a2c15b0fd5d370f80964b8f4d62b353823e06cf.json | Add flush method to ServerHttpResponse
This is useful to make sure response headers are written to the
underlying response. It is also useful in conjunction with long
running, async requests and HTTP streaming, to ensure the Servlet
response buffer is sent to the client without additional delay and
also causes an IOEx... | spring-websocket/src/main/java/org/springframework/sockjs/server/transport/StreamingHttpServerSession.java | @@ -16,8 +16,8 @@
package org.springframework.sockjs.server.transport;
import java.io.IOException;
-import java.io.OutputStream;
+import org.springframework.http.server.ServerHttpResponse;
import org.springframework.sockjs.server.SockJsConfiguration;
import org.springframework.sockjs.server.SockJsFrame;
@@ -3... | true |
Other | spring-projects | spring-framework | 3a2c15b0fd5d370f80964b8f4d62b353823e06cf.json | Add flush method to ServerHttpResponse
This is useful to make sure response headers are written to the
underlying response. It is also useful in conjunction with long
running, async requests and HTTP streaming, to ensure the Servlet
response buffer is sent to the client without additional delay and
also causes an IOEx... | spring-websocket/src/main/java/org/springframework/sockjs/server/transport/WebSocketSockJsHandlerAdapter.java | @@ -16,6 +16,8 @@
package org.springframework.sockjs.server.transport;
+import java.io.IOException;
+
import org.springframework.sockjs.SockJsHandler;
import org.springframework.sockjs.SockJsSessionSupport;
import org.springframework.sockjs.server.SockJsConfiguration;
@@ -60,7 +62,7 @@ public boolean isActive()... | true |
Other | spring-projects | spring-framework | 3a2c15b0fd5d370f80964b8f4d62b353823e06cf.json | Add flush method to ServerHttpResponse
This is useful to make sure response headers are written to the
underlying response. It is also useful in conjunction with long
running, async requests and HTTP streaming, to ensure the Servlet
response buffer is sent to the client without additional delay and
also causes an IOEx... | spring-websocket/src/main/java/org/springframework/sockjs/server/transport/XhrStreamingTransportHandler.java | @@ -56,7 +56,7 @@ protected void writePrelude(ServerHttpRequest request, ServerHttpResponse respon
response.getBody().write('h');
}
response.getBody().write('\n');
- response.getBody().flush();
+ response.flush();
}
@Override | true |
Other | spring-projects | spring-framework | 3a2c15b0fd5d370f80964b8f4d62b353823e06cf.json | Add flush method to ServerHttpResponse
This is useful to make sure response headers are written to the
underlying response. It is also useful in conjunction with long
running, async requests and HTTP streaming, to ensure the Servlet
response buffer is sent to the client without additional delay and
also causes an IOEx... | spring-websocket/src/main/java/org/springframework/websocket/WebSocketSession.java | @@ -16,6 +16,8 @@
package org.springframework.websocket;
+import java.io.IOException;
+
/**
@@ -27,7 +29,7 @@ public interface WebSocketSession {
boolean isOpen();
- void sendText(String text) throws Exception;
+ void sendText(String text) throws IOException;
void close();
| true |
Other | spring-projects | spring-framework | 3a2c15b0fd5d370f80964b8f4d62b353823e06cf.json | Add flush method to ServerHttpResponse
This is useful to make sure response headers are written to the
underlying response. It is also useful in conjunction with long
running, async requests and HTTP streaming, to ensure the Servlet
response buffer is sent to the client without additional delay and
also causes an IOEx... | spring-websocket/src/main/java/org/springframework/websocket/endpoint/StandardWebSocketSession.java | @@ -16,6 +16,8 @@
package org.springframework.websocket.endpoint;
+import java.io.IOException;
+
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.websocket.WebSocketSession;
@@ -44,7 +46,7 @@ public boolean isOpen() {
}
@Override
- public void... | true |
Other | spring-projects | spring-framework | 3a2c15b0fd5d370f80964b8f4d62b353823e06cf.json | Add flush method to ServerHttpResponse
This is useful to make sure response headers are written to the
underlying response. It is also useful in conjunction with long
running, async requests and HTTP streaming, to ensure the Servlet
response buffer is sent to the client without additional delay and
also causes an IOEx... | spring-websocket/src/main/java/org/springframework/websocket/server/endpoint/EndpointRegistration.java | @@ -29,6 +29,8 @@
import javax.websocket.server.HandshakeRequest;
import javax.websocket.server.ServerEndpointConfig;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;
impor... | true |
Other | spring-projects | spring-framework | 3a2c15b0fd5d370f80964b8f4d62b353823e06cf.json | Add flush method to ServerHttpResponse
This is useful to make sure response headers are written to the
underlying response. It is also useful in conjunction with long
running, async requests and HTTP streaming, to ensure the Servlet
response buffer is sent to the client without additional delay and
also causes an IOEx... | spring-websocket/src/main/java/org/springframework/websocket/server/endpoint/handshake/EndpointHandshakeHandler.java | @@ -26,12 +26,11 @@
import org.springframework.websocket.endpoint.WebSocketHandlerEndpoint;
import org.springframework.websocket.server.AbstractHandshakeHandler;
import org.springframework.websocket.server.HandshakeHandler;
-import org.springframework.websocket.server.endpoint.EndpointRequestUpgradeStrategy;
/*... | true |
Other | spring-projects | spring-framework | 3a2c15b0fd5d370f80964b8f4d62b353823e06cf.json | Add flush method to ServerHttpResponse
This is useful to make sure response headers are written to the
underlying response. It is also useful in conjunction with long
running, async requests and HTTP streaming, to ensure the Servlet
response buffer is sent to the client without additional delay and
also causes an IOEx... | spring-websocket/src/main/java/org/springframework/websocket/server/endpoint/handshake/GlassfishRequestUpgradeStrategy.java | @@ -46,7 +46,6 @@
import org.springframework.util.ReflectionUtils;
import org.springframework.util.StringUtils;
import org.springframework.websocket.server.endpoint.EndpointRegistration;
-import org.springframework.websocket.server.endpoint.EndpointRequestUpgradeStrategy;
/**
* Glassfish support for upgrading a... | true |
Other | spring-projects | spring-framework | 3a2c15b0fd5d370f80964b8f4d62b353823e06cf.json | Add flush method to ServerHttpResponse
This is useful to make sure response headers are written to the
underlying response. It is also useful in conjunction with long
running, async requests and HTTP streaming, to ensure the Servlet
response buffer is sent to the client without additional delay and
also causes an IOEx... | spring-websocket/src/main/java/org/springframework/websocket/server/endpoint/handshake/RequestUpgradeStrategy.java | @@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.websocket.server.endpoint;
+package org.springframework.websocket.server.endpoint.handshake;
import javax.websocket.Endpoint;
@@ -29,7 +29,7 @@
* @author Rossen Stoyanchev
* @since 4.0
*/
-public interface EndpointReques... | true |
Other | spring-projects | spring-framework | 3a2c15b0fd5d370f80964b8f4d62b353823e06cf.json | Add flush method to ServerHttpResponse
This is useful to make sure response headers are written to the
underlying response. It is also useful in conjunction with long
running, async requests and HTTP streaming, to ensure the Servlet
response buffer is sent to the client without additional delay and
also causes an IOEx... | spring-websocket/src/main/java/org/springframework/websocket/server/endpoint/handshake/TomcatRequestUpgradeStrategy.java | @@ -16,6 +16,7 @@
package org.springframework.websocket.server.endpoint.handshake;
+import java.io.IOException;
import java.lang.reflect.Method;
import java.util.Collections;
@@ -29,10 +30,10 @@
import org.springframework.http.server.ServerHttpRequest;
import org.springframework.http.server.ServerHttpRespons... | true |
Other | spring-projects | spring-framework | 914e969ac3a90270d262c4cb817a5ed1eecb2baa.json | Add support for @ServerEndpoint annotated classes | spring-websocket/src/main/java/org/springframework/websocket/server/endpoint/EndpointExporter.java | @@ -15,40 +15,56 @@
*/
package org.springframework.websocket.server.endpoint;
+import java.util.Map;
+
import javax.websocket.DeploymentException;
import javax.websocket.server.ServerContainer;
import javax.websocket.server.ServerContainerProvider;
+import javax.websocket.server.ServerEndpoint;
import javax.we... | true |
Other | spring-projects | spring-framework | 914e969ac3a90270d262c4cb817a5ed1eecb2baa.json | Add support for @ServerEndpoint annotated classes | spring-websocket/src/main/java/org/springframework/websocket/server/endpoint/EndpointRegistration.java | @@ -36,6 +36,7 @@
import org.springframework.util.Assert;
import org.springframework.util.ClassUtils;
import org.springframework.web.context.ContextLoader;
+import org.springframework.web.context.WebApplicationContext;
import org.springframework.websocket.WebSocketHandler;
import org.springframework.websocket.endp... | true |
Other | spring-projects | spring-framework | 914e969ac3a90270d262c4cb817a5ed1eecb2baa.json | Add support for @ServerEndpoint annotated classes | spring-websocket/src/main/java/org/springframework/websocket/server/endpoint/SpringConfigurator.java | @@ -0,0 +1,63 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | build.gradle | @@ -526,6 +526,9 @@ project("spring-websocket") {
optional("org.eclipse.jetty:jetty-websocket:8.1.10.v20130312")
optional("org.glassfish.tyrus:tyrus-websocket-core:1.0-SNAPSHOT")
+
+ optional("com.fasterxml.jackson.core:jackson-databind:2.0.1")
+
}
repositories { | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-test/src/main/java/org/springframework/mock/http/MockHttpInputMessage.java | @@ -19,6 +19,7 @@
import java.io.IOException;
import java.io.InputStream;
+import org.springframework.http.Cookies;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpInputMessage;
import org.springframework.util.Assert;
@@ -35,6 +36,8 @@ public class MockHttpInputMessage implements... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-test/src/main/java/org/springframework/mock/http/MockHttpOutputMessage.java | @@ -21,6 +21,7 @@
import java.io.UnsupportedEncodingException;
import java.nio.charset.Charset;
+import org.springframework.http.Cookies;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpOutputMessage;
@@ -38,6 +39,7 @@ public class MockHttpOutputMessage implements HttpOutputMess... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-web/src/main/java/org/springframework/http/Cookie.java | @@ -0,0 +1,25 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ ... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-web/src/main/java/org/springframework/http/Cookies.java | @@ -0,0 +1,59 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ ... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-web/src/main/java/org/springframework/http/DefaultCookie.java | @@ -0,0 +1,40 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ ... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-web/src/main/java/org/springframework/http/HttpMessage.java | @@ -31,4 +31,9 @@ public interface HttpMessage {
*/
HttpHeaders getHeaders();
+ /**
+ * TODO ..
+ */
+ Cookies getCookies();
+
} | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-web/src/main/java/org/springframework/http/client/AbstractClientHttpRequest.java | @@ -19,6 +19,7 @@
import java.io.IOException;
import java.io.OutputStream;
+import org.springframework.http.Cookies;
import org.springframework.http.HttpHeaders;
import org.springframework.util.Assert;
@@ -44,6 +45,11 @@ public final OutputStream getBody() throws IOException {
return getBodyInternal(this.hea... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-web/src/main/java/org/springframework/http/client/AbstractClientHttpResponse.java | @@ -18,6 +18,7 @@
import java.io.IOException;
+import org.springframework.http.Cookies;
import org.springframework.http.HttpStatus;
/**
@@ -32,4 +33,9 @@ public HttpStatus getStatusCode() throws IOException {
return HttpStatus.valueOf(getRawStatusCode());
}
+ public Cookies getCookies() {
+ // TODO
+ ... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-web/src/main/java/org/springframework/http/client/BufferingClientHttpRequestWrapper.java | @@ -17,9 +17,9 @@
package org.springframework.http.client;
import java.io.IOException;
-import java.io.OutputStream;
import java.net.URI;
+import org.springframework.http.Cookies;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.util.Assert;
@... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-web/src/main/java/org/springframework/http/client/BufferingClientHttpResponseWrapper.java | @@ -20,9 +20,9 @@
import java.io.IOException;
import java.io.InputStream;
+import org.springframework.http.Cookies;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
-import org.springframework.util.FileCopyUtils;
import org.springframework.util.StreamUtils;
/**
@@ -67,6... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-web/src/main/java/org/springframework/http/client/support/HttpRequestWrapper.java | @@ -18,6 +18,7 @@
import java.net.URI;
+import org.springframework.http.Cookies;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpRequest;
@@ -73,4 +74,11 @@ public HttpHeaders getHeaders() {
return this.request.getHeaders();
}
+... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-web/src/main/java/org/springframework/http/converter/FormHttpMessageConverter.java | @@ -30,6 +30,7 @@
import java.util.Random;
import org.springframework.core.io.Resource;
+import org.springframework.http.Cookies;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpInputMessage;
@@ -383,6 +384,11 @@ public OutputStream get... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-web/src/main/java/org/springframework/http/server/AsyncServerHttpRequest.java | @@ -0,0 +1,34 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ ... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-web/src/main/java/org/springframework/http/server/AsyncServletServerHttpRequest.java | @@ -0,0 +1,139 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-web/src/main/java/org/springframework/http/server/ServerHttpRequest.java | @@ -18,6 +18,7 @@
import org.springframework.http.HttpInputMessage;
import org.springframework.http.HttpRequest;
+import org.springframework.util.MultiValueMap;
/**
* Represents a server-side HTTP request.
@@ -27,4 +28,9 @@
*/
public interface ServerHttpRequest extends HttpRequest, HttpInputMessage {
+ /*... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-web/src/main/java/org/springframework/http/server/ServletServerHttpRequest.java | @@ -33,12 +33,16 @@
import java.util.List;
import java.util.Map;
+import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
+import org.springframework.http.Cookies;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.M... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-web/src/main/java/org/springframework/http/server/ServletServerHttpResponse.java | @@ -22,6 +22,8 @@
import java.util.Map;
import javax.servlet.http.HttpServletResponse;
+import org.springframework.http.Cookie;
+import org.springframework.http.Cookies;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.util.Assert;
@@ -40,6 +42,8... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-web/src/test/java/org/springframework/http/MockHttpInputMessage.java | @@ -31,6 +31,9 @@ public class MockHttpInputMessage implements HttpInputMessage {
private final InputStream body;
+ private final Cookies cookies = new Cookies();
+
+
public MockHttpInputMessage(byte[] contents) {
Assert.notNull(contents, "'contents' must not be null");
this.body = new ByteArrayInputStrea... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-web/src/test/java/org/springframework/http/MockHttpOutputMessage.java | @@ -32,6 +32,9 @@ public class MockHttpOutputMessage implements HttpOutputMessage {
private final ByteArrayOutputStream body = spy(new ByteArrayOutputStream());
+ private final Cookies cookies = new Cookies();
+
+
@Override
public HttpHeaders getHeaders() {
return headers;
@@ -50,4 +53,9 @@ public String g... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-web/src/test/java/org/springframework/http/client/InterceptingClientHttpRequestFactoryTests.java | @@ -29,6 +29,7 @@
import org.junit.Before;
import org.junit.Test;
+import org.springframework.http.Cookies;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpRequest;
@@ -253,6 +254,8 @@ private class RequestMock implements ClientHttpRequ... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/sockjs/SockJsHandler.java | @@ -0,0 +1,36 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/sockjs/SockJsHandlerAdapter.java | @@ -0,0 +1,43 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/sockjs/SockJsSession.java | @@ -0,0 +1,32 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/sockjs/SockJsSessionSupport.java | @@ -0,0 +1,128 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ ... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/sockjs/TransportType.java | @@ -0,0 +1,86 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ ... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/sockjs/server/AbstractServerSession.java | @@ -0,0 +1,151 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ ... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/sockjs/server/AbstractSockJsService.java | @@ -0,0 +1,431 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/sockjs/server/SockJsConfiguration.java | @@ -0,0 +1,69 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ ... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/sockjs/server/SockJsFrame.java | @@ -0,0 +1,167 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/sockjs/server/SockJsWebSocketSessionAdapter.java | @@ -0,0 +1,79 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/sockjs/server/TransportHandler.java | @@ -0,0 +1,39 @@
+/*
+ * Copyright 2002-2013 the toriginal author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/sockjs/server/TransportHandlerRegistrar.java | @@ -0,0 +1,28 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ ... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/sockjs/server/TransportHandlerRegistry.java | @@ -0,0 +1,28 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ ... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/sockjs/server/WebSocketSockJsHandlerAdapter.java | @@ -0,0 +1,93 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/sockjs/server/support/DefaultSockJsService.java | @@ -0,0 +1,216 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/sockjs/server/support/DefaultTransportHandlerRegistrar.java | @@ -0,0 +1,50 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ ... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/sockjs/server/transport/AbstractHttpReceivingTransportHandler.java | @@ -0,0 +1,93 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ ... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/sockjs/server/transport/AbstractHttpSendingTransportHandler.java | @@ -0,0 +1,74 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ ... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/sockjs/server/transport/AbstractHttpServerSession.java | @@ -0,0 +1,147 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/sockjs/server/transport/AbstractStreamingTransportHandler.java | @@ -0,0 +1,62 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ ... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/sockjs/server/transport/EventSourceTransportHandler.java | @@ -0,0 +1,60 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ ... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/sockjs/server/transport/HtmlFileTransportHandler.java | @@ -0,0 +1,115 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/sockjs/server/transport/JsonpPollingTransportHandler.java | @@ -0,0 +1,86 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ ... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/sockjs/server/transport/JsonpTransportHandler.java | @@ -0,0 +1,68 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ ... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/sockjs/server/transport/PollingHttpServerSession.java | @@ -0,0 +1,44 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ ... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/sockjs/server/transport/StreamingHttpServerSession.java | @@ -0,0 +1,72 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ ... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/sockjs/server/transport/WebSocketTransportHandler.java | @@ -0,0 +1,60 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/sockjs/server/transport/XhrPollingTransportHandler.java | @@ -0,0 +1,57 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ ... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/sockjs/server/transport/XhrStreamingTransportHandler.java | @@ -0,0 +1,62 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ ... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/sockjs/server/transport/XhrTransportHandler.java | @@ -0,0 +1,42 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ ... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/websocket/WebSocketHandler.java | @@ -26,14 +26,14 @@
*/
public interface WebSocketHandler {
- void newSession(Session session) throws Exception;
+ void newSession(WebSocketSession session) throws Exception;
- void handleTextMessage(Session session, String message) throws Exception;
+ void handleTextMessage(WebSocketSession session, String messa... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/websocket/WebSocketHandlerAdapter.java | @@ -26,23 +26,23 @@
public class WebSocketHandlerAdapter implements WebSocketHandler {
@Override
- public void newSession(Session session) throws Exception {
+ public void newSession(WebSocketSession session) throws Exception {
}
@Override
- public void handleTextMessage(Session session, String message) thro... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/websocket/WebSocketSession.java | @@ -23,10 +23,12 @@
* @author Rossen Stoyanchev
* @since 4.0
*/
-public interface Session {
+public interface WebSocketSession {
void sendText(String text) throws Exception;
- void close(int code, String reason) throws Exception;
+ void close();
+
+ void close(int code, String reason);
} | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/websocket/endpoint/StandardWebSocketHandlerAdapter.java | @@ -27,7 +27,7 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.util.Assert;
-import org.springframework.websocket.Session;
+import org.springframework.websocket.WebSocketSession;
import org.springframework.websocket.WebSocketHandler;
@@ -42,21 +... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/websocket/endpoint/WebSocketStandardSessionAdapter.java | @@ -18,34 +18,41 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.springframework.websocket.Session;
+import org.springframework.websocket.WebSocketSession;
/**
*
* @author Rossen Stoyanchev
* @since 4.0
*/
-public class StandardSessionAdapter implemen... | true |
Other | spring-projects | spring-framework | 88447e503b1c0eeccceb2de28876af9bcd4db90f.json | Add first cut of SockJS server support | spring-websocket/src/main/java/org/springframework/websocket/server/endpoint/EndpointRegistration.java | @@ -35,6 +35,7 @@
import org.springframework.beans.factory.BeanFactoryAware;
import org.springframework.util.Assert;
import org.springframework.util.ClassUtils;
+import org.springframework.web.context.ContextLoader;
import org.springframework.websocket.WebSocketHandler;
import org.springframework.websocket.endpoin... | true |
Other | spring-projects | spring-framework | 741927664c456bd2ab5f9710ef4758092754457d.json | Update package structure | spring-websocket/src/main/java/org/springframework/websocket/endpoint/StandardSessionAdapter.java | @@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.websocket.support;
+package org.springframework.websocket.endpoint;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; | true |
Other | spring-projects | spring-framework | 741927664c456bd2ab5f9710ef4758092754457d.json | Update package structure | spring-websocket/src/main/java/org/springframework/websocket/endpoint/StandardWebSocketHandlerAdapter.java | @@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.websocket.support;
+package org.springframework.websocket.endpoint;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap; | true |
Other | spring-projects | spring-framework | 741927664c456bd2ab5f9710ef4758092754457d.json | Update package structure | spring-websocket/src/main/java/org/springframework/websocket/endpoint/package-info.java | @@ -0,0 +1,8 @@
+
+/**
+ *
+ * Support for working with standard Java WebSocket Endpoint's.
+ *
+ */
+package org.springframework.websocket.endpoint;
+ | true |
Other | spring-projects | spring-framework | 741927664c456bd2ab5f9710ef4758092754457d.json | Update package structure | spring-websocket/src/main/java/org/springframework/websocket/server/AbstractHandshakeRequestHandler.java | @@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.websocket;
+package org.springframework.websocket.server;
import java.io.IOException;
import java.nio.charset.Charset; | true |
Other | spring-projects | spring-framework | 741927664c456bd2ab5f9710ef4758092754457d.json | Update package structure | spring-websocket/src/main/java/org/springframework/websocket/server/HandshakeRequestHandler.java | @@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.websocket;
+package org.springframework.websocket.server;
import org.springframework.http.server.ServerHttpRequest;
import org.springframework.http.server.ServerHttpResponse; | true |
Other | spring-projects | spring-framework | 741927664c456bd2ab5f9710ef4758092754457d.json | Update package structure | spring-websocket/src/main/java/org/springframework/websocket/server/endpoint/ServerEndpointExporter.java | @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.springframework.websocket.support;
+package org.springframework.websocket.server.endpoint;
import javax.websocket.DeploymentException;
import javax.websocket.server.ServerCo... | true |
Other | spring-projects | spring-framework | 741927664c456bd2ab5f9710ef4758092754457d.json | Update package structure | spring-websocket/src/main/java/org/springframework/websocket/server/endpoint/ServerEndpointRegistration.java | @@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.websocket.support;
+package org.springframework.websocket.server.endpoint;
import java.util.ArrayList;
import java.util.Collections;
@@ -36,6 +36,7 @@
import org.springframework.util.Assert;
import org.springframework.util.Cl... | true |
Other | spring-projects | spring-framework | 741927664c456bd2ab5f9710ef4758092754457d.json | Update package structure | spring-websocket/src/main/java/org/springframework/websocket/server/endpoint/ServletServerEndpointExporter.java | @@ -14,21 +14,20 @@
* limitations under the License.
*/
-package org.springframework.websocket.servlet;
+package org.springframework.websocket.server.endpoint;
import javax.servlet.ServletContext;
import org.apache.tomcat.websocket.server.WsServerContainer;
import org.springframework.web.context.ServletCon... | true |
Other | spring-projects | spring-framework | 741927664c456bd2ab5f9710ef4758092754457d.json | Update package structure | spring-websocket/src/main/java/org/springframework/websocket/server/endpoint/TomcatHandshakeRequestHandler.java | @@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.websocket.servlet;
+package org.springframework.websocket.server.endpoint;
import java.lang.reflect.Method;
import java.util.Collections;
@@ -31,17 +31,16 @@
import org.springframework.http.server.ServletServerHttpRequest;
im... | true |
Other | spring-projects | spring-framework | 741927664c456bd2ab5f9710ef4758092754457d.json | Update package structure | spring-websocket/src/main/java/org/springframework/websocket/server/endpoint/package-info.java | @@ -0,0 +1,8 @@
+
+/**
+ *
+ * Server-specific support for working with standard Java WebSocket Endpoint's.
+ *
+ */
+package org.springframework.websocket.server.endpoint;
+ | true |
Other | spring-projects | spring-framework | cdd7d7bd8864b826c9ddd8cb7edb384e25083e6d.json | Add javax.websocket.Endpoint configuration support | build.gradle | @@ -515,13 +515,24 @@ project("spring-websocket") {
compile(project(":spring-core"))
compile(project(":spring-context"))
compile(project(":spring-web"))
- optional("javax.websocket:javax.websocket-api:1.0-b14")
+
+ optional("org.apache.tomcat:tomcat-servlet-api:8.0-SNAPSHOT") // TODO: replace with "javax.ser... | true |
Other | spring-projects | spring-framework | cdd7d7bd8864b826c9ddd8cb7edb384e25083e6d.json | Add javax.websocket.Endpoint configuration support | spring-web/src/main/java/org/springframework/http/HttpHeaders.java | @@ -17,14 +17,10 @@
package org.springframework.http;
import java.io.Serializable;
-
import java.net.URI;
-
import java.nio.charset.Charset;
-
import java.text.ParseException;
import java.text.SimpleDateFormat;
-
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
@@ -40,6 ... | true |
Other | spring-projects | spring-framework | cdd7d7bd8864b826c9ddd8cb7edb384e25083e6d.json | Add javax.websocket.Endpoint configuration support | spring-websocket/src/main/java/org/springframework/websocket/Session.java | @@ -16,17 +16,16 @@
package org.springframework.websocket;
-import org.springframework.http.server.ServerHttpRequest;
-import org.springframework.http.server.ServerHttpResponse;
/**
*
* @author Rossen Stoyanchev
*/
-public interface HandshakeRequestHandler {
+public interface Session {
+ void sendText... | true |
Other | spring-projects | spring-framework | cdd7d7bd8864b826c9ddd8cb7edb384e25083e6d.json | Add javax.websocket.Endpoint configuration support | spring-websocket/src/main/java/org/springframework/websocket/WebSocketHandler.java | @@ -0,0 +1,38 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *... | true |
Other | spring-projects | spring-framework | cdd7d7bd8864b826c9ddd8cb7edb384e25083e6d.json | Add javax.websocket.Endpoint configuration support | spring-websocket/src/main/java/org/springframework/websocket/WebSocketHandlerAdapter.java | @@ -0,0 +1,47 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *... | true |
Other | spring-projects | spring-framework | cdd7d7bd8864b826c9ddd8cb7edb384e25083e6d.json | Add javax.websocket.Endpoint configuration support | spring-websocket/src/main/java/org/springframework/websocket/support/ServerEndpointPostProcessor.java | @@ -0,0 +1,141 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | cdd7d7bd8864b826c9ddd8cb7edb384e25083e6d.json | Add javax.websocket.Endpoint configuration support | spring-websocket/src/main/java/org/springframework/websocket/support/ServerEndpointRegistration.java | @@ -0,0 +1,204 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ ... | true |
Other | spring-projects | spring-framework | cdd7d7bd8864b826c9ddd8cb7edb384e25083e6d.json | Add javax.websocket.Endpoint configuration support | spring-websocket/src/main/java/org/springframework/websocket/support/StandardSessionAdapter.java | @@ -0,0 +1,50 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *... | true |
Other | spring-projects | spring-framework | cdd7d7bd8864b826c9ddd8cb7edb384e25083e6d.json | Add javax.websocket.Endpoint configuration support | spring-websocket/src/main/java/org/springframework/websocket/support/StandardWebSocketHandlerAdapter.java | @@ -0,0 +1,131 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ ... | true |
Other | spring-projects | spring-framework | d80ea16291d11c1611ebfe12669d4a67873d648c.json | Fix JasperReport tests to ignore missing fonts
Add 'jasperreports.properties' to ignore missing fonts in order that
tests pass on Linux.
The upgraded JasperReports 5.0.4 throws a JRFontNotFoundException when
a report font is not found. This caused Spring MVC tests to fail since
the example reports used the 'Arial' fo... | spring-webmvc/src/test/resources/jasperreports.properties | @@ -0,0 +1 @@
+net.sf.jasperreports.awt.ignore.missing.font=true
\ No newline at end of file | false |
Other | spring-projects | spring-framework | cf687fcc72a84ec090b170f39d5ec016c5017fdb.json | Fix typos in ServiceLocatorFactoryBean | spring-beans/src/main/java/org/springframework/beans/factory/config/ServiceLocatorFactoryBean.java | @@ -65,17 +65,17 @@
* int or a custom enumeration type, for example, stringified via
* {@code toString}. The resulting String can be used as bean name as-is,
* provided that corresponding beans are defined in the bean factory.
- * Alternatively, {@link #setServiceMappings(java.util.Properties) a custom mapping}
-... | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.