Replace Jetty 9 only constant with explicit value

Closes gh-27121
This commit is contained in:
Rossen Stoyanchev 2021-07-09 20:16:58 +01:00
parent 39442143b7
commit fbf4724d78
2 changed files with 3 additions and 5 deletions

View File

@ -29,7 +29,6 @@ import javax.servlet.http.HttpServletResponse;
import org.aopalliance.intercept.MethodInterceptor; import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation; import org.aopalliance.intercept.MethodInvocation;
import org.eclipse.jetty.websocket.server.HandshakeRFC6455;
import org.springframework.aop.framework.ProxyFactory; import org.springframework.aop.framework.ProxyFactory;
import org.springframework.aop.target.EmptyTargetSource; import org.springframework.aop.target.EmptyTargetSource;
@ -56,7 +55,7 @@ import org.springframework.web.socket.server.RequestUpgradeStrategy;
*/ */
public class Jetty10RequestUpgradeStrategy implements RequestUpgradeStrategy { public class Jetty10RequestUpgradeStrategy implements RequestUpgradeStrategy {
private static final String[] SUPPORTED_VERSIONS = new String[] { String.valueOf(HandshakeRFC6455.VERSION) }; private static final String[] SUPPORTED_VERSIONS = new String[] { String.valueOf(13) };
private static final Class<?> webSocketCreatorClass; private static final Class<?> webSocketCreatorClass;

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2020 the original author or authors. * Copyright 2002-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -31,7 +31,6 @@ import javax.servlet.http.HttpServletResponse;
import org.eclipse.jetty.websocket.api.WebSocketPolicy; import org.eclipse.jetty.websocket.api.WebSocketPolicy;
import org.eclipse.jetty.websocket.api.extensions.ExtensionConfig; import org.eclipse.jetty.websocket.api.extensions.ExtensionConfig;
import org.eclipse.jetty.websocket.server.HandshakeRFC6455;
import org.eclipse.jetty.websocket.server.WebSocketServerFactory; import org.eclipse.jetty.websocket.server.WebSocketServerFactory;
import org.springframework.context.Lifecycle; import org.springframework.context.Lifecycle;
@ -168,7 +167,7 @@ public class JettyRequestUpgradeStrategy implements RequestUpgradeStrategy, Serv
@Override @Override
public String[] getSupportedVersions() { public String[] getSupportedVersions() {
return new String[] { String.valueOf(HandshakeRFC6455.VERSION) }; return new String[] { String.valueOf(13) };
} }
@Override @Override