Browse Source

Fix minor issue in JettyRequestUpgradeStrategy

Issue: SPR-10861
pull/336/merge
Jan Machacek 11 years ago committed by Rossen Stoyanchev
parent
commit
c48a41ea7a
  1. 2
      spring-websocket/src/main/java/org/springframework/web/socket/server/support/JettyRequestUpgradeStrategy.java

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

@ -69,6 +69,8 @@ public class JettyRequestUpgradeStrategy implements RequestUpgradeStrategy { @@ -69,6 +69,8 @@ public class JettyRequestUpgradeStrategy implements RequestUpgradeStrategy {
* {@link WebSocketServerFactory#getPolicy()}.
*/
public JettyRequestUpgradeStrategy(WebSocketServerFactory factory) {
Assert.notNull(factory, "WebSocketServerFactory is required");
this.factory = factory;
this.factory.setCreator(new WebSocketCreator() {
@Override
public Object createWebSocket(UpgradeRequest request, UpgradeResponse response) {

Loading…
Cancel
Save