Skip to content

Commit 2a55902

Browse files
committed
Upgrade spring-websocket to Jetty 9.0.4
1 parent c0e1225 commit 2a55902

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -480,11 +480,11 @@ project("spring-websocket") {
480480
}
481481
optional("org.glassfish.tyrus:tyrus-websocket-core:1.0")
482482
optional("org.glassfish.tyrus:tyrus-container-servlet:1.0")
483-
optional("org.eclipse.jetty:jetty-webapp:9.0.3.v20130506") {
483+
optional("org.eclipse.jetty:jetty-webapp:9.0.4.v20130625") {
484484
exclude group: "org.eclipse.jetty.orbit", module: "javax.servlet"
485485
}
486-
optional("org.eclipse.jetty.websocket:websocket-server:9.0.3.v20130506")
487-
optional("org.eclipse.jetty.websocket:websocket-client:9.0.3.v20130506")
486+
optional("org.eclipse.jetty.websocket:websocket-server:9.0.4.v20130625")
487+
optional("org.eclipse.jetty.websocket:websocket-client:9.0.4.v20130625")
488488
optional("com.fasterxml.jackson.core:jackson-databind:2.2.0") // required for SockJS support currently
489489
}
490490

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
import org.eclipse.jetty.websocket.api.UpgradeRequest;
2525
import org.eclipse.jetty.websocket.api.UpgradeResponse;
2626
import org.eclipse.jetty.websocket.server.HandshakeRFC6455;
27-
import org.eclipse.jetty.websocket.server.ServletWebSocketRequest;
2827
import org.eclipse.jetty.websocket.server.WebSocketServerFactory;
28+
import org.eclipse.jetty.websocket.servlet.ServletUpgradeRequest;
2929
import org.eclipse.jetty.websocket.servlet.WebSocketCreator;
3030
import org.springframework.http.server.ServerHttpRequest;
3131
import org.springframework.http.server.ServerHttpResponse;
@@ -67,8 +67,8 @@ public JettyRequestUpgradeStrategy() {
6767
this.factory.setCreator(new WebSocketCreator() {
6868
@Override
6969
public Object createWebSocket(UpgradeRequest request, UpgradeResponse response) {
70-
Assert.isInstanceOf(ServletWebSocketRequest.class, request);
71-
return ((ServletWebSocketRequest) request).getServletAttributes().get(WEBSOCKET_LISTENER_ATTR_NAME);
70+
Assert.isInstanceOf(ServletUpgradeRequest.class, request);
71+
return ((ServletUpgradeRequest) request).getServletAttributes().get(WEBSOCKET_LISTENER_ATTR_NAME);
7272
}
7373
});
7474
try {

0 commit comments

Comments
 (0)