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
1c47c8f35c91b1c77b27ab5092ff01b5733ec116.json
Remove TODOs (replaced with JIRA tickets) Issue: SPR-10703
spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandlerIntegrationTests.java
@@ -188,7 +188,6 @@ public void relayReconnectsIfBrokerComesBackUp() throws Exception { stopBrokerAndAwait(); - // TODO: // 1st message will see ERROR frame (broker shutdown is not but should be detected) // 2nd message will be queued (a side effect of CONNECT/CONNECTED-buffering, likely to be removed) ...
true
Other
spring-projects
spring-framework
1c47c8f35c91b1c77b27ab5092ff01b5733ec116.json
Remove TODOs (replaced with JIRA tickets) Issue: SPR-10703
spring-websocket/src/main/java/org/springframework/web/socket/client/endpoint/StandardWebSocketClient.java
@@ -89,10 +89,8 @@ protected WebSocketSession doHandshakeInternal(WebSocketHandler webSocketHandler configBuidler.preferredSubprotocols(protocols); try { - // TODO: do not block Endpoint endpoint = new StandardWebSocketHandlerAdapter(webSocketHandler, session); this.webSocketContainer.connectToServer(...
true
Other
spring-projects
spring-framework
1c47c8f35c91b1c77b27ab5092ff01b5733ec116.json
Remove TODOs (replaced with JIRA tickets) Issue: SPR-10703
spring-websocket/src/main/java/org/springframework/web/socket/client/jetty/JettyWebSocketClient.java
@@ -20,7 +20,9 @@ import java.security.Principal; import java.util.List; import java.util.Map; +import java.util.concurrent.Future; +import org.eclipse.jetty.websocket.api.Session; import org.eclipse.jetty.websocket.client.ClientUpgradeRequest; import org.eclipse.jetty.websocket.client.WebSocketClient; import o...
true
Other
spring-projects
spring-framework
1c47c8f35c91b1c77b27ab5092ff01b5733ec116.json
Remove TODOs (replaced with JIRA tickets) Issue: SPR-10703
spring-websocket/src/main/java/org/springframework/web/socket/server/DefaultHandshakeHandler.java
@@ -225,14 +225,6 @@ protected void handleWebSocketVersionNotSupported(ServerHttpRequest request, Ser } protected boolean isValidOrigin(ServerHttpRequest request) { - String origin = request.getHeaders().getOrigin(); - if (origin != null) { - // UriComponentsBuilder uriBuilder = UriComponentsBuilder.fromHttpU...
true
Other
spring-projects
spring-framework
1c47c8f35c91b1c77b27ab5092ff01b5733ec116.json
Remove TODOs (replaced with JIRA tickets) Issue: SPR-10703
spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/handler/AbstractHttpSendingTransportHandler.java
@@ -50,7 +50,7 @@ public final void handleRequest(ServerHttpRequest request, ServerHttpResponse re AbstractHttpSockJsSession sockJsSession = (AbstractHttpSockJsSession) wsSession; - String protocol = null; // TODO: https://github.com/sockjs/sockjs-client/issues/130 + String protocol = null; // https://github.c...
true
Other
spring-projects
spring-framework
1c47c8f35c91b1c77b27ab5092ff01b5733ec116.json
Remove TODOs (replaced with JIRA tickets) Issue: SPR-10703
spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/session/AbstractSockJsSession.java
@@ -219,7 +219,6 @@ public final void close(CloseStatus status) throws IOException { } try { if (isActive()) { - // TODO: deliver messages "in flight" before sending close frame try { // bypass writeFrame writeFrameInternal(SockJsFrame.closeFrame(status.getCode(), status.getReason()...
true
Other
spring-projects
spring-framework
e1a46bb57a88628305534ddab85591dbc8dcc8e9.json
Add tests to spring-messaging
spring-messaging/src/main/java/org/springframework/messaging/simp/annotation/support/SubscriptionMethodReturnValueHandler.java
@@ -31,10 +31,10 @@ /** * A {@link HandlerMethodReturnValueHandler} for replying directly to a subscription. It - * supports methods annotated with {@link SubscribeEvent} that do not also annotated with - * neither {@link ReplyTo} nor {@link ReplyToUser}. - * - * <p>The value returned from the method is converted,...
true
Other
spring-projects
spring-framework
e1a46bb57a88628305534ddab85591dbc8dcc8e9.json
Add tests to spring-messaging
spring-messaging/src/main/java/org/springframework/messaging/simp/config/AbstractStompEndpointRegistration.java
@@ -30,8 +30,7 @@ /** - * A helper class for configuring STOMP protocol handling over WebSocket - * with optional SockJS fallback options. + * An abstract base class class for configuring STOMP over WebSocket/SockJS endpoints. * * @author Rossen Stoyanchev * @since 4.0 @@ -46,33 +45,36 @@ private StompSo...
true
Other
spring-projects
spring-framework
e1a46bb57a88628305534ddab85591dbc8dcc8e9.json
Add tests to spring-messaging
spring-messaging/src/main/java/org/springframework/messaging/simp/config/MessageBrokerConfigurer.java
@@ -33,7 +33,7 @@ */ public class MessageBrokerConfigurer { - private final MessageChannel webSocketReplyChannel; + private final MessageChannel webSocketResponseChannel; private SimpleBrokerRegistration simpleBroker; @@ -42,18 +42,18 @@ public class MessageBrokerConfigurer { private String[] annotationMet...
true
Other
spring-projects
spring-framework
e1a46bb57a88628305534ddab85591dbc8dcc8e9.json
Add tests to spring-messaging
spring-messaging/src/main/java/org/springframework/messaging/simp/config/StompBrokerRelayRegistration.java
@@ -37,6 +37,8 @@ public class StompBrokerRelayRegistration extends AbstractBrokerRegistration { private String applicationPasscode = "guest"; + private boolean autoStartup = true; + public StompBrokerRelayRegistration(MessageChannel webSocketReplyChannel, String[] destinationPrefixes) { super(webSocketRep...
true
Other
spring-projects
spring-framework
e1a46bb57a88628305534ddab85591dbc8dcc8e9.json
Add tests to spring-messaging
spring-messaging/src/main/java/org/springframework/messaging/simp/config/WebSocketMessageBrokerConfigurationSupport.java
@@ -67,7 +67,7 @@ public HandlerMapping brokerWebSocketHandlerMapping() { @Bean public SubProtocolWebSocketHandler subProtocolWebSocketHandler() { SubProtocolWebSocketHandler wsHandler = new SubProtocolWebSocketHandler(webSocketRequestChannel()); - webSocketReplyChannel().subscribe(wsHandler); + webSocketRespo...
true
Other
spring-projects
spring-framework
e1a46bb57a88628305534ddab85591dbc8dcc8e9.json
Add tests to spring-messaging
spring-messaging/src/main/java/org/springframework/messaging/simp/handler/AbstractBrokerMessageHandler.java
@@ -47,6 +47,8 @@ private AtomicBoolean brokerAvailable = new AtomicBoolean(false); + private boolean autoStartup = true; + private Object lifecycleMonitor = new Object(); private volatile boolean running = false; @@ -71,9 +73,13 @@ public ApplicationEventPublisher getApplicationEventPublisher() { return...
true
Other
spring-projects
spring-framework
e1a46bb57a88628305534ddab85591dbc8dcc8e9.json
Add tests to spring-messaging
spring-messaging/src/main/java/org/springframework/messaging/simp/handler/AnnotationMethodMessageHandler.java
@@ -78,7 +78,7 @@ public class AnnotationMethodMessageHandler implements MessageHandler, Applicati private final SimpMessageSendingOperations brokerTemplate; - private final SimpMessageSendingOperations webSocketReplyTemplate; + private final SimpMessageSendingOperations webSocketResponseTemplate; private Col...
true
Other
spring-projects
spring-framework
e1a46bb57a88628305534ddab85591dbc8dcc8e9.json
Add tests to spring-messaging
spring-messaging/src/main/java/org/springframework/messaging/support/channel/AbstractMessageChannel.java
@@ -127,4 +127,10 @@ public final boolean send(Message<?> message, long timeout) { protected abstract boolean sendInternal(Message<?> message, long timeout); + + @Override + public String toString() { + return "MessageChannel [name=" + this.beanName + "]"; + } + }
true
Other
spring-projects
spring-framework
e1a46bb57a88628305534ddab85591dbc8dcc8e9.json
Add tests to spring-messaging
spring-messaging/src/test/java/org/springframework/messaging/simp/config/AbstractStompEndpointRegistrationTests.java
@@ -54,7 +54,7 @@ public void setup() { } @Test - public void minimal() { + public void minimalRegistration() { TestStompEndpointRegistration registration = new TestStompEndpointRegistration(new String[] {"/foo"}, this.wsHandler, this.scheduler); @@ -68,7 +68,7 @@ public void minimal() { } @Test -...
true
Other
spring-projects
spring-framework
e1a46bb57a88628305534ddab85591dbc8dcc8e9.json
Add tests to spring-messaging
spring-messaging/src/test/java/org/springframework/messaging/simp/config/ServletStompEndpointRegistryTests.java
@@ -0,0 +1,90 @@ +/* + * 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
e1a46bb57a88628305534ddab85591dbc8dcc8e9.json
Add tests to spring-messaging
spring-messaging/src/test/java/org/springframework/messaging/simp/config/WebSocketMessageBrokerConfigurationSupportTests.java
@@ -0,0 +1,347 @@ +/* + * 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
e1a46bb57a88628305534ddab85591dbc8dcc8e9.json
Add tests to spring-messaging
spring-messaging/src/test/java/org/springframework/messaging/simp/handler/AnnotationMethodIntegrationTests.java
@@ -14,9 +14,15 @@ * limitations under the License. */ -package org.springframework.messaging.simp.config; +package org.springframework.messaging.simp.handler; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annota...
true
Other
spring-projects
spring-framework
e1a46bb57a88628305534ddab85591dbc8dcc8e9.json
Add tests to spring-messaging
spring-websocket/src/test/java/org/springframework/web/socket/AbstractWebSocketIntegrationTests.java
@@ -108,6 +108,10 @@ protected String getWsBaseUrl() { return "ws://localhost:" + this.server.getPort(); } + protected WebSocketSession doHandshake(WebSocketHandler clientHandler, String endpointPath) { + return this.webSocketClient.doHandshake(clientHandler, getWsBaseUrl() + endpointPath); + } + static abs...
true
Other
spring-projects
spring-framework
8db4089e54d84587a9f617eadf530e9872b05a41.json
Release version 4.0.0.M3
gradle.properties
@@ -1 +1 @@ -version=4.0.0.BUILD-SNAPSHOT +version=4.0.0.M3
false
Other
spring-projects
spring-framework
1f897329f9b8617a84fab10fee5f3ad9269160b3.json
Add support for Ping and Pong WebSocket messages Issue: SPR-10876
spring-websocket/src/main/java/org/springframework/web/socket/BinaryMessage.java
@@ -31,15 +31,15 @@ public final class BinaryMessage extends WebSocketMessage<ByteBuffer> { /** * Create a new {@link BinaryMessage} instance. - * @param payload a non-null payload + * @param payload the non-null payload */ public BinaryMessage(ByteBuffer payload) { this(payload, true); } /** ...
true
Other
spring-projects
spring-framework
1f897329f9b8617a84fab10fee5f3ad9269160b3.json
Add support for Ping and Pong WebSocket messages Issue: SPR-10876
spring-websocket/src/main/java/org/springframework/web/socket/PingMessage.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
1f897329f9b8617a84fab10fee5f3ad9269160b3.json
Add support for Ping and Pong WebSocket messages Issue: SPR-10876
spring-websocket/src/main/java/org/springframework/web/socket/PongMessage.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
1f897329f9b8617a84fab10fee5f3ad9269160b3.json
Add support for Ping and Pong WebSocket messages Issue: SPR-10876
spring-websocket/src/main/java/org/springframework/web/socket/TextMessage.java
@@ -26,15 +26,15 @@ public final class TextMessage extends WebSocketMessage<String> { /** * Create a new {@link TextMessage} instance. - * @param payload the payload + * @param payload the non-null payload */ public TextMessage(CharSequence payload) { super(payload.toString(), true); } /** * C...
true
Other
spring-projects
spring-framework
1f897329f9b8617a84fab10fee5f3ad9269160b3.json
Add support for Ping and Pong WebSocket messages Issue: SPR-10876
spring-websocket/src/main/java/org/springframework/web/socket/WebSocketMessage.java
@@ -24,8 +24,6 @@ * * @author Rossen Stoyanchev * @since 4.0 - * @see BinaryMessage - * @see TextMessage */ public abstract class WebSocketMessage<T> { @@ -34,12 +32,19 @@ private final boolean last; + /** + * Create a new {@link WebSocketMessage} instance with the given payload. + */ + WebSocketMess...
true
Other
spring-projects
spring-framework
1f897329f9b8617a84fab10fee5f3ad9269160b3.json
Add support for Ping and Pong WebSocket messages Issue: SPR-10876
spring-websocket/src/main/java/org/springframework/web/socket/adapter/AbstractWebSocketSesssion.java
@@ -23,6 +23,8 @@ import org.springframework.util.Assert; import org.springframework.web.socket.BinaryMessage; import org.springframework.web.socket.CloseStatus; +import org.springframework.web.socket.PingMessage; +import org.springframework.web.socket.PongMessage; import org.springframework.web.socket.TextMessage;...
true
Other
spring-projects
spring-framework
1f897329f9b8617a84fab10fee5f3ad9269160b3.json
Add support for Ping and Pong WebSocket messages Issue: SPR-10876
spring-websocket/src/main/java/org/springframework/web/socket/adapter/JettyWebSocketSession.java
@@ -26,6 +26,8 @@ import org.springframework.util.ObjectUtils; import org.springframework.web.socket.BinaryMessage; import org.springframework.web.socket.CloseStatus; +import org.springframework.web.socket.PingMessage; +import org.springframework.web.socket.PongMessage; import org.springframework.web.socket.TextMes...
true
Other
spring-projects
spring-framework
1f897329f9b8617a84fab10fee5f3ad9269160b3.json
Add support for Ping and Pong WebSocket messages Issue: SPR-10876
spring-websocket/src/main/java/org/springframework/web/socket/adapter/StandardWebSocketHandlerAdapter.java
@@ -28,6 +28,7 @@ import org.springframework.util.Assert; import org.springframework.web.socket.BinaryMessage; import org.springframework.web.socket.CloseStatus; +import org.springframework.web.socket.PongMessage; import org.springframework.web.socket.TextMessage; import org.springframework.web.socket.WebSocketHan...
true
Other
spring-projects
spring-framework
1f897329f9b8617a84fab10fee5f3ad9269160b3.json
Add support for Ping and Pong WebSocket messages Issue: SPR-10876
spring-websocket/src/main/java/org/springframework/web/socket/adapter/StandardWebSocketSession.java
@@ -29,6 +29,8 @@ import org.springframework.util.StringUtils; import org.springframework.web.socket.BinaryMessage; import org.springframework.web.socket.CloseStatus; +import org.springframework.web.socket.PingMessage; +import org.springframework.web.socket.PongMessage; import org.springframework.web.socket.TextMes...
true
Other
spring-projects
spring-framework
1f897329f9b8617a84fab10fee5f3ad9269160b3.json
Add support for Ping and Pong WebSocket messages Issue: SPR-10876
spring-websocket/src/main/java/org/springframework/web/socket/adapter/WebSocketHandlerAdapter.java
@@ -18,6 +18,7 @@ import org.springframework.web.socket.BinaryMessage; import org.springframework.web.socket.CloseStatus; +import org.springframework.web.socket.PongMessage; import org.springframework.web.socket.TextMessage; import org.springframework.web.socket.WebSocketHandler; import org.springframework.web.s...
true
Other
spring-projects
spring-framework
cbdb99c042896cac30734440844c2c5563790cc0.json
Add basic javadoc to spring-messaging annotations
spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/MessageBody.java
@@ -22,9 +22,12 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; +import org.springframework.messaging.Message; + /** - * Annotation indicating a method parameter should be bound to the body of a message. + * Annotation indicating a method parameter should be bound to the body ...
true
Other
spring-projects
spring-framework
cbdb99c042896cac30734440844c2c5563790cc0.json
Add basic javadoc to spring-messaging annotations
spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/MessageExceptionHandler.java
@@ -25,6 +25,10 @@ /** + * Annotation for handling exceptions from message-handling methods within specific + * handler methods. + * + * * @author Rossen Stoyanchev * @since 4.0 */
true
Other
spring-projects
spring-framework
cbdb99c042896cac30734440844c2c5563790cc0.json
Add basic javadoc to spring-messaging annotations
spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/MessageMapping.java
@@ -22,7 +22,13 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; +import org.springframework.messaging.Message; + + /** + * Annotation for mapping a {@link Message} onto specific handler handler methods based on + * the destination for the message. + * * @author Rossen Stoyanch...
true
Other
spring-projects
spring-framework
cbdb99c042896cac30734440844c2c5563790cc0.json
Add basic javadoc to spring-messaging annotations
spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/ReplyTo.java
@@ -22,8 +22,13 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; +import org.springframework.messaging.Message; + /** + * Annotation that indicates a method's return value should be converted to + * a {@link Message} and sent to the specified destination. + * * @author Rossen...
true
Other
spring-projects
spring-framework
cbdb99c042896cac30734440844c2c5563790cc0.json
Add basic javadoc to spring-messaging annotations
spring-messaging/src/main/java/org/springframework/messaging/simp/annotation/ReplyToUser.java
@@ -22,10 +22,23 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; +import org.springframework.messaging.Message; +import org.springframework.messaging.simp.SimpMessageHeaderAccessor; + /** + * Annotation that can be used on methods processing an input message to indicate that t...
true
Other
spring-projects
spring-framework
cbdb99c042896cac30734440844c2c5563790cc0.json
Add basic javadoc to spring-messaging annotations
spring-messaging/src/main/java/org/springframework/messaging/simp/annotation/SubscribeEvent.java
@@ -24,6 +24,9 @@ /** + * Annotation for mapping subscription events onto specific handler handler methods based + * on the destination for the message (e.g. STOMP SUBSCRIBE message). + * * @author Rossen Stoyanchev * @since 4.0 */
true
Other
spring-projects
spring-framework
cbdb99c042896cac30734440844c2c5563790cc0.json
Add basic javadoc to spring-messaging annotations
spring-messaging/src/main/java/org/springframework/messaging/simp/annotation/UnsubscribeEvent.java
@@ -24,6 +24,9 @@ /** + * Annotation for mapping unsubscribe events onto specific handler handler methods based + * on the destination for the message (e.g. STOMP UNSUBSCRIBE message). + * * @author Rossen Stoyanchev * @since 4.0 */
true
Other
spring-projects
spring-framework
4525068f56314e8e322e412852feedc1486a0d02.json
Remove JUnit 3.8 based test class hierarchy This commit picks up where 74021b9 left off.
spring-test/src/main/java/org/springframework/test/annotation/Timed.java
@@ -41,7 +41,6 @@ * @author Sam Brannen * @since 2.0 * @see Repeat - * @see AbstractAnnotationAwareTransactionalTests */ @Documented @Retention(RetentionPolicy.RUNTIME)
true
Other
spring-projects
spring-framework
4525068f56314e8e322e412852feedc1486a0d02.json
Remove JUnit 3.8 based test class hierarchy This commit picks up where 74021b9 left off.
spring-test/src/main/java/org/springframework/test/jpa/OrmXmlOverridingShadowingClassLoader.java
@@ -1,55 +0,0 @@ -/* - * Copyright 2002-2012 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
4525068f56314e8e322e412852feedc1486a0d02.json
Remove JUnit 3.8 based test class hierarchy This commit picks up where 74021b9 left off.
spring-test/src/main/java/org/springframework/test/jpa/package-info.java
@@ -1,9 +0,0 @@ - -/** - * - * As of Spring 3.0, this package has been deprecated in favor of using the listener-based - * <em>Spring TestContext Framework</em>. - * - */ -package org.springframework.test.jpa; -
true
Other
spring-projects
spring-framework
cb2ffb79e4f58f99aca64b38eaa6c8cce89a27dc.json
Set Ant build.compiler to javac1.7
build.gradle
@@ -12,6 +12,11 @@ configure(allprojects) { project -> group = "org.springframework" version = qualifyVersionIfNecessary(version) + // The following is a work-around until the Gradle build uses + // Ant 1.9.x by default. This is necessary to avoid the + // "Class not found: javac1.8" issue with Ant versions prior...
false
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/sockjs/AbstractSockJsSession.java
@@ -55,7 +55,7 @@ public abstract class AbstractSockJsSession implements WebSocketSession { * @param sessionId * @param webSocketHandler the recipient of SockJS messages */ - public AbstractSockJsSession(String sessionId, WebSocketHandler<?> webSocketHandler) { + public AbstractSockJsSession(String sessionId, ...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/sockjs/SockJsSessionFactory.java
@@ -34,6 +34,6 @@ * @param webSocketHandler the underlying {@link WebSocketHandler} * @return a new non-null session */ - S createSession(String sessionId, WebSocketHandler<?> webSocketHandler); + S createSession(String sessionId, WebSocketHandler webSocketHandler); }
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/sockjs/server/AbstractServerSockJsSession.java
@@ -43,7 +43,7 @@ public abstract class AbstractServerSockJsSession extends AbstractSockJsSession private ScheduledFuture<?> heartbeatTask; - public AbstractServerSockJsSession(String sessionId, SockJsConfiguration config, WebSocketHandler<?> handler) { + public AbstractServerSockJsSession(String sessionId, SockJ...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/sockjs/server/AbstractSockJsService.java
@@ -199,7 +199,7 @@ public boolean isWebSocketEnabled() { * @throws Exception */ public final void handleRequest(ServerHttpRequest request, ServerHttpResponse response, - String sockJsPath, WebSocketHandler<?> webSocketHandler) throws IOException, TransportErrorException { + String sockJsPath, WebSocketHand...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/sockjs/server/SockJsService.java
@@ -30,6 +30,6 @@ public interface SockJsService { void handleRequest(ServerHttpRequest request, ServerHttpResponse response, - String sockJsPath, WebSocketHandler<?> webSocketHandler) throws IOException, TransportErrorException; + String sockJsPath, WebSocketHandler webSocketHandler) throws IOException, Tran...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/sockjs/server/TransportHandler.java
@@ -30,6 +30,6 @@ public interface TransportHandler { TransportType getTransportType(); void handleRequest(ServerHttpRequest request, ServerHttpResponse response, - WebSocketHandler<?> handler, AbstractSockJsSession session) throws TransportErrorException; + WebSocketHandler handler, AbstractSockJsSession ses...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/sockjs/server/support/DefaultSockJsService.java
@@ -142,7 +142,7 @@ public Map<TransportType, TransportHandler> getTransportHandlers() { @Override protected void handleRawWebSocketRequest(ServerHttpRequest request, ServerHttpResponse response, - WebSocketHandler<?> webSocketHandler) throws IOException { + WebSocketHandler webSocketHandler) throws IOExcepti...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/sockjs/server/support/SockJsHttpRequestHandler.java
@@ -43,7 +43,7 @@ public class SockJsHttpRequestHandler implements HttpRequestHandler { private final SockJsService sockJsService; - private final WebSocketHandler<?> webSocketHandler; + private final WebSocketHandler webSocketHandler; private final UrlPathHelper urlPathHelper = new UrlPathHelper();
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/sockjs/server/transport/AbstractHttpReceivingTransportHandler.java
@@ -54,7 +54,7 @@ public ObjectMapper getObjectMapper() { @Override public final void handleRequest(ServerHttpRequest request, ServerHttpResponse response, - WebSocketHandler<?> webSocketHandler, AbstractSockJsSession session) + WebSocketHandler webSocketHandler, AbstractSockJsSession session) throws Tr...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/sockjs/server/transport/AbstractHttpSendingTransportHandler.java
@@ -57,7 +57,7 @@ public SockJsConfiguration getSockJsConfig() { @Override public final void handleRequest(ServerHttpRequest request, ServerHttpResponse response, - WebSocketHandler<?> webSocketHandler, AbstractSockJsSession session) + WebSocketHandler webSocketHandler, AbstractSockJsSession session) th...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/sockjs/server/transport/AbstractHttpServerSockJsSession.java
@@ -49,7 +49,7 @@ public abstract class AbstractHttpServerSockJsSession extends AbstractServerSock private ServerHttpResponse response; - public AbstractHttpServerSockJsSession(String sessionId, SockJsConfiguration config, WebSocketHandler<?> handler) { + public AbstractHttpServerSockJsSession(String sessionId, S...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/sockjs/server/transport/EventSourceTransportHandler.java
@@ -46,7 +46,7 @@ protected MediaType getContentType() { } @Override - public StreamingServerSockJsSession createSession(String sessionId, WebSocketHandler<?> handler) { + public StreamingServerSockJsSession createSession(String sessionId, WebSocketHandler handler) { Assert.notNull(getSockJsConfig(), "This tra...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/sockjs/server/transport/HtmlFileTransportHandler.java
@@ -80,7 +80,7 @@ protected MediaType getContentType() { } @Override - public StreamingServerSockJsSession createSession(String sessionId, WebSocketHandler<?> handler) { + public StreamingServerSockJsSession createSession(String sessionId, WebSocketHandler handler) { Assert.notNull(getSockJsConfig(), "This tra...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/sockjs/server/transport/JsonpPollingTransportHandler.java
@@ -50,7 +50,7 @@ protected MediaType getContentType() { } @Override - public PollingServerSockJsSession createSession(String sessionId, WebSocketHandler<?> handler) { + public PollingServerSockJsSession createSession(String sessionId, WebSocketHandler handler) { Assert.notNull(getSockJsConfig(), "This transpo...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/sockjs/server/transport/PollingServerSockJsSession.java
@@ -24,7 +24,7 @@ public class PollingServerSockJsSession extends AbstractHttpServerSockJsSession { - public PollingServerSockJsSession(String sessionId, SockJsConfiguration config, WebSocketHandler<?> handler) { + public PollingServerSockJsSession(String sessionId, SockJsConfiguration config, WebSocketHandler han...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/sockjs/server/transport/SockJsWebSocketHandler.java
@@ -44,7 +44,7 @@ public class SockJsWebSocketHandler extends TextWebSocketHandlerAdapter { private final SockJsConfiguration sockJsConfig; - private final WebSocketHandler<?> webSocketHandler; + private final WebSocketHandler webSocketHandler; private WebSocketServerSockJsSession sockJsSession; @@ -54,7 +5...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/sockjs/server/transport/StreamingServerSockJsSession.java
@@ -31,7 +31,7 @@ public class StreamingServerSockJsSession extends AbstractHttpServerSockJsSessio private int byteCount; - public StreamingServerSockJsSession(String sessionId, SockJsConfiguration config, WebSocketHandler<?> handler) { + public StreamingServerSockJsSession(String sessionId, SockJsConfiguration c...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/sockjs/server/transport/WebSocketTransportHandler.java
@@ -63,10 +63,10 @@ public void setSockJsConfiguration(SockJsConfiguration sockJsConfig) { @Override public void handleRequest(ServerHttpRequest request, ServerHttpResponse response, - WebSocketHandler<?> webSocketHandler, AbstractSockJsSession session) throws TransportErrorException { + WebSocketHandler webS...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/sockjs/server/transport/XhrPollingTransportHandler.java
@@ -50,7 +50,7 @@ protected FrameFormat getFrameFormat(ServerHttpRequest request) { return new DefaultFrameFormat("%s\n"); } - public PollingServerSockJsSession createSession(String sessionId, WebSocketHandler<?> handler) { + public PollingServerSockJsSession createSession(String sessionId, WebSocketHandler hand...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/sockjs/server/transport/XhrStreamingTransportHandler.java
@@ -47,7 +47,7 @@ protected MediaType getContentType() { } @Override - public StreamingServerSockJsSession createSession(String sessionId, WebSocketHandler<?> handler) { + public StreamingServerSockJsSession createSession(String sessionId, WebSocketHandler handler) { Assert.notNull(getSockJsConfig(), "This tra...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/websocket/WebSocketHandler.java
@@ -26,7 +26,7 @@ * @author Phillip Webb * @since 4.0 */ -public interface WebSocketHandler<T extends WebSocketMessage<?>> { +public interface WebSocketHandler { /** * A new WebSocket connection has been opened and is ready to be used. @@ -36,7 +36,7 @@ /** * Handle an incoming WebSocket message. *...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/websocket/adapter/BinaryWebSocketHandlerAdapter.java
@@ -16,8 +16,10 @@ package org.springframework.websocket.adapter; -import org.springframework.websocket.BinaryMessage; +import java.io.IOException; + import org.springframework.websocket.CloseStatus; +import org.springframework.websocket.TextMessage; import org.springframework.websocket.WebSocketHandler; import...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/websocket/adapter/JettyWebSocketListenerAdapter.java
@@ -25,7 +25,6 @@ import org.springframework.websocket.CloseStatus; import org.springframework.websocket.TextMessage; import org.springframework.websocket.WebSocketHandler; -import org.springframework.websocket.WebSocketMessage; import org.springframework.websocket.WebSocketSession; /** @@ -38,12 +37,12 @@ publi...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/websocket/adapter/StandardEndpointAdapter.java
@@ -52,7 +52,7 @@ public class StandardEndpointAdapter extends Endpoint { - public StandardEndpointAdapter(WebSocketHandler<?> webSocketHandler) { + public StandardEndpointAdapter(WebSocketHandler webSocketHandler) { Assert.notNull(webSocketHandler, "webSocketHandler is required"); this.handler = new WebSoc...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/websocket/adapter/TextWebSocketHandlerAdapter.java
@@ -16,8 +16,10 @@ package org.springframework.websocket.adapter; +import java.io.IOException; + +import org.springframework.websocket.BinaryMessage; import org.springframework.websocket.CloseStatus; -import org.springframework.websocket.TextMessage; import org.springframework.websocket.WebSocketHandler; import...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/websocket/adapter/WebSocketHandlerAdapter.java
@@ -34,7 +34,7 @@ * @see TextWebSocketHandlerAdapter * @see BinaryWebSocketHandlerAdapter */ -public class WebSocketHandlerAdapter implements WebSocketHandler<WebSocketMessage<?>> { +public class WebSocketHandlerAdapter implements WebSocketHandler { @Override public void afterConnectionEstablished(WebSocket...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/websocket/adapter/WebSocketHandlerInvoker.java
@@ -20,7 +20,6 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import org.springframework.core.GenericTypeResolver; import org.springframework.util.Assert; import org.springframework.websocket.CloseStatus; import org.springframework.websocket.WebSocketHandler; @@ -36,22 +...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/websocket/client/WebSocketClient.java
@@ -38,7 +38,7 @@ public interface WebSocketClient { WebSocketSession doHandshake(WebSocketHandler webSocketHandler, String uriTemplate, Object... uriVariables) throws WebSocketConnectFailureException; - WebSocketSession doHandshake(WebSocketHandler<?> webSocketHandler, HttpHeaders headers, URI uri) + WebSocket...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/websocket/client/WebSocketConnectionManager.java
@@ -32,7 +32,7 @@ public class WebSocketConnectionManager extends AbstractWebSocketConnectionManag private final WebSocketClient client; - private final WebSocketHandler<?> webSocketHandler; + private final WebSocketHandler webSocketHandler; private WebSocketSession webSocketSession;
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/websocket/client/endpoint/StandardWebSocketClient.java
@@ -67,7 +67,7 @@ public WebSocketSession doHandshake(WebSocketHandler webSocketHandler, String ur } @Override - public WebSocketSession doHandshake(WebSocketHandler<?> webSocketHandler, + public WebSocketSession doHandshake(WebSocketHandler webSocketHandler, final HttpHeaders httpHeaders, URI uri) throws Web...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/websocket/server/DefaultHandshakeHandler.java
@@ -87,7 +87,7 @@ public String[] getSupportedProtocols() { @Override public final boolean doHandshake(ServerHttpRequest request, ServerHttpResponse response, - WebSocketHandler<?> webSocketHandler) throws IOException { + WebSocketHandler webSocketHandler) throws IOException { logger.debug("Starting hand...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/websocket/server/HandshakeHandler.java
@@ -31,7 +31,7 @@ public interface HandshakeHandler { - boolean doHandshake(ServerHttpRequest request, ServerHttpResponse response, - WebSocketHandler<?> webSocketHandler) throws IOException; + boolean doHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler webSocketHandler) + thro...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/websocket/server/RequestUpgradeStrategy.java
@@ -40,9 +40,9 @@ public interface RequestUpgradeStrategy { * Perform runtime specific steps to complete the upgrade. * Invoked only if the handshake is successful. * - * @param handler the handler for WebSocket messages + * @param webSocketHandler the handler for WebSocket messages */ void upgrade(Serv...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/websocket/server/support/AbstractEndpointUpgradeStrategy.java
@@ -42,7 +42,7 @@ public abstract class AbstractEndpointUpgradeStrategy implements RequestUpgradeS @Override public void upgrade(ServerHttpRequest request, ServerHttpResponse response, - String protocol, WebSocketHandler<?> webSocketHandler) throws IOException { + String protocol, WebSocketHandler webSocketHa...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/websocket/server/support/JettyRequestUpgradeStrategy.java
@@ -65,8 +65,8 @@ public JettyRequestUpgradeStrategy() { public Object createWebSocket(UpgradeRequest request, UpgradeResponse response) { Assert.isInstanceOf(ServletWebSocketRequest.class, request); ServletWebSocketRequest servletRequest = (ServletWebSocketRequest) request; - WebSocketHandler<?> webSo...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/websocket/server/support/WebSocketHttpRequestHandler.java
@@ -43,14 +43,14 @@ public class WebSocketHttpRequestHandler implements HttpRequestHandler { private final HandshakeHandler handshakeHandler; - private final WebSocketHandler<?> webSocketHandler; + private final WebSocketHandler webSocketHandler; public WebSocketHttpRequestHandler(WebSocketHandler webSocket...
true
Other
spring-projects
spring-framework
f347988428b50286ab9d5a7d19553917def76883.json
Remove parameterized type from WebSocketHandler
spring-websocket/src/main/java/org/springframework/websocket/support/PerConnectionWebSocketHandlerProxy.java
@@ -16,7 +16,6 @@ package org.springframework.websocket.support; -import java.io.IOException; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; @@ -25,7 +24,6 @@ import org.springframework.beans.BeansException; import org.springframework.beans.factory.BeanFactory; import org.springframewo...
true
Other
spring-projects
spring-framework
5f22cf053279b4a692eac95b5fbfb9701110cd4e.json
Add WebSocketHandlerInvoker class
spring-websocket/src/main/java/org/springframework/sockjs/AbstractSockJsSession.java
@@ -27,6 +27,7 @@ import org.springframework.websocket.TextMessage; import org.springframework.websocket.WebSocketHandler; import org.springframework.websocket.WebSocketSession; +import org.springframework.websocket.adapter.WebSocketHandlerInvoker; /** @@ -42,9 +43,7 @@ public abstract class AbstractSockJsSessi...
true
Other
spring-projects
spring-framework
5f22cf053279b4a692eac95b5fbfb9701110cd4e.json
Add WebSocketHandlerInvoker class
spring-websocket/src/main/java/org/springframework/websocket/WebSocketHandler.java
@@ -29,11 +29,6 @@ public interface WebSocketHandler { */ void afterConnectionEstablished(WebSocketSession session); - /** - * A WebSocket connection has been closed. - */ - void afterConnectionClosed(CloseStatus closeStatus, WebSocketSession session); - /** * Handle an incoming text message. */ @@ -49...
true
Other
spring-projects
spring-framework
5f22cf053279b4a692eac95b5fbfb9701110cd4e.json
Add WebSocketHandlerInvoker class
spring-websocket/src/main/java/org/springframework/websocket/adapter/JettyWebSocketListenerAdapter.java
@@ -0,0 +1,80 @@ +/* + * 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
5f22cf053279b4a692eac95b5fbfb9701110cd4e.json
Add WebSocketHandlerInvoker class
spring-websocket/src/main/java/org/springframework/websocket/adapter/JettyWebSocketSessionAdapter.java
@@ -0,0 +1,98 @@ +/* + * 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
5f22cf053279b4a692eac95b5fbfb9701110cd4e.json
Add WebSocketHandlerInvoker class
spring-websocket/src/main/java/org/springframework/websocket/adapter/StandardEndpointAdapter.java
@@ -0,0 +1,114 @@ +/* + * 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
5f22cf053279b4a692eac95b5fbfb9701110cd4e.json
Add WebSocketHandlerInvoker class
spring-websocket/src/main/java/org/springframework/websocket/adapter/StandardWebSocketSessionAdapter.java
@@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.websocket.endpoint; +package org.springframework.websocket.adapter; import java.io.IOException; import java.net.URI; @@ -39,14 +39,14 @@ * @author Rossen Stoyanchev * @since 4.0 */ -public class StandardWebSocketSession i...
true
Other
spring-projects
spring-framework
5f22cf053279b4a692eac95b5fbfb9701110cd4e.json
Add WebSocketHandlerInvoker class
spring-websocket/src/main/java/org/springframework/websocket/adapter/WebSocketHandlerInvoker.java
@@ -0,0 +1,161 @@ +/* + * 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
5f22cf053279b4a692eac95b5fbfb9701110cd4e.json
Add WebSocketHandlerInvoker class
spring-websocket/src/main/java/org/springframework/websocket/adapter/package-info.java
@@ -15,8 +15,8 @@ */ /** - * Classes for use with the standard Java WebSocket endpoints from both client and - * server code. + * Adapters for the {@link org.springframework.websocket.WebSocketHandler} and + * {@link org.springframework.websocket.WebSocketSession} contracts. */ -package org.springframework.webso...
true
Other
spring-projects
spring-framework
5f22cf053279b4a692eac95b5fbfb9701110cd4e.json
Add WebSocketHandlerInvoker class
spring-websocket/src/main/java/org/springframework/websocket/client/endpoint/StandardWebSocketClient.java
@@ -35,10 +35,10 @@ import org.springframework.websocket.HandlerProvider; import org.springframework.websocket.WebSocketHandler; import org.springframework.websocket.WebSocketSession; +import org.springframework.websocket.adapter.StandardWebSocketSessionAdapter; +import org.springframework.websocket.adapter.Standard...
true
Other
spring-projects
spring-framework
5f22cf053279b4a692eac95b5fbfb9701110cd4e.json
Add WebSocketHandlerInvoker class
spring-websocket/src/main/java/org/springframework/websocket/endpoint/WebSocketHandlerEndpoint.java
@@ -1,188 +0,0 @@ -/* - * 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
5f22cf053279b4a692eac95b5fbfb9701110cd4e.json
Add WebSocketHandlerInvoker class
spring-websocket/src/main/java/org/springframework/websocket/server/endpoint/EndpointRegistration.java
@@ -29,23 +29,18 @@ 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; imp...
true
Other
spring-projects
spring-framework
5f22cf053279b4a692eac95b5fbfb9701110cd4e.json
Add WebSocketHandlerInvoker class
spring-websocket/src/main/java/org/springframework/websocket/server/support/AbstractEndpointUpgradeStrategy.java
@@ -26,7 +26,7 @@ import org.springframework.http.server.ServerHttpResponse; import org.springframework.websocket.HandlerProvider; import org.springframework.websocket.WebSocketHandler; -import org.springframework.websocket.endpoint.WebSocketHandlerEndpoint; +import org.springframework.websocket.adapter.StandardEndp...
true
Other
spring-projects
spring-framework
5f22cf053279b4a692eac95b5fbfb9701110cd4e.json
Add WebSocketHandlerInvoker class
spring-websocket/src/main/java/org/springframework/websocket/server/support/JettyRequestUpgradeStrategy.java
@@ -17,18 +17,12 @@ package org.springframework.websocket.server.support; import java.io.IOException; -import java.net.URI; -import java.util.concurrent.atomic.AtomicInteger; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -import org.apache.commons.logging.Log; -i...
true
Other
spring-projects
spring-framework
34c95034d8437249b573912aaf275c0a734b15a7.json
Fix minor issue and polish
spring-websocket/src/main/java/org/springframework/sockjs/AbstractSockJsSession.java
@@ -139,7 +139,7 @@ public void delegateMessages(String[] messages) throws Exception { } } - public void delegateError(Throwable ex) { + public void delegateError(Throwable ex) throws Exception { this.handler.handleError(ex, this); }
true
Other
spring-projects
spring-framework
34c95034d8437249b573912aaf275c0a734b15a7.json
Fix minor issue and polish
spring-websocket/src/main/java/org/springframework/sockjs/server/support/DefaultSockJsService.java
@@ -36,6 +36,7 @@ import org.springframework.sockjs.SockJsSessionFactory; import org.springframework.sockjs.server.AbstractSockJsService; import org.springframework.sockjs.server.ConfigurableTransportHandler; +import org.springframework.sockjs.server.SockJsService; import org.springframework.sockjs.server.Transport...
true
Other
spring-projects
spring-framework
34c95034d8437249b573912aaf275c0a734b15a7.json
Fix minor issue and polish
spring-websocket/src/main/java/org/springframework/sockjs/server/transport/SockJsWebSocketHandler.java
@@ -102,7 +102,7 @@ public void afterConnectionClosed(CloseStatus status, WebSocketSession wsSession } @Override - public void handleError(Throwable exception, WebSocketSession webSocketSession) { + public void handleError(Throwable exception, WebSocketSession webSocketSession) throws Exception { this.session....
true
Other
spring-projects
spring-framework
34c95034d8437249b573912aaf275c0a734b15a7.json
Fix minor issue and polish
spring-websocket/src/main/java/org/springframework/websocket/CloseStatus.java
@@ -113,19 +113,15 @@ public final class CloseStatus { public static final CloseStatus SERVER_ERROR = new CloseStatus(1011); /** - * 1012 indicates that the service is restarted. A client may reconnect, and if it - * choses to do, should reconnect using a randomized delay of 5 - 30s. - * <p>See <a href="htt...
true
Other
spring-projects
spring-framework
34c95034d8437249b573912aaf275c0a734b15a7.json
Fix minor issue and polish
spring-websocket/src/main/java/org/springframework/websocket/WebSocketHandler.java
@@ -39,6 +39,6 @@ public interface WebSocketHandler { /** * TODO */ - void handleError(Throwable exception, WebSocketSession session); + void handleError(Throwable exception, WebSocketSession session) throws Exception; }
true
Other
spring-projects
spring-framework
34c95034d8437249b573912aaf275c0a734b15a7.json
Fix minor issue and polish
spring-websocket/src/main/java/org/springframework/websocket/client/WebSocketClient.java
@@ -37,6 +37,9 @@ public interface WebSocketClient { + WebSocketSession doHandshake(WebSocketHandler handler, + String uriTemplate, Object... uriVariables) throws WebSocketConnectFailureException; + WebSocketSession doHandshake(HandlerProvider<WebSocketHandler> handler, String uriTemplate, Object... uriVar...
true
Other
spring-projects
spring-framework
34c95034d8437249b573912aaf275c0a734b15a7.json
Fix minor issue and polish
spring-websocket/src/main/java/org/springframework/websocket/client/endpoint/StandardWebSocketClient.java
@@ -38,6 +38,7 @@ import org.springframework.websocket.client.WebSocketConnectFailureException; import org.springframework.websocket.endpoint.StandardWebSocketSession; import org.springframework.websocket.endpoint.WebSocketHandlerEndpoint; +import org.springframework.websocket.support.SimpleHandlerProvider; /**...
true
Other
spring-projects
spring-framework
34c95034d8437249b573912aaf275c0a734b15a7.json
Fix minor issue and polish
spring-websocket/src/main/java/org/springframework/websocket/endpoint/WebSocketHandlerEndpoint.java
@@ -67,7 +67,7 @@ public void onOpen(final javax.websocket.Session session, EndpointConfig config) Assert.isTrue(this.sessionCount.compareAndSet(0, 1), "Unexpected connection"); if (logger.isDebugEnabled()) { - logger.debug("Client connected, javax.websocket.Session id=" + logger.debug("Connection establish...
true
Other
spring-projects
spring-framework
34c95034d8437249b573912aaf275c0a734b15a7.json
Fix minor issue and polish
spring-websocket/src/main/java/org/springframework/websocket/server/support/JettyRequestUpgradeStrategy.java
@@ -143,7 +143,7 @@ public void onWebSocketConnect(Session session) { try { this.session = new WebSocketSessionAdapter(session); if (logger.isDebugEnabled()) { - logger.debug("Client connected, WebSocket session id=" + logger.debug("Connection established, WebSocket session id=" + this.ses...
true