|
60 | 60 | import org.springframework.web.reactive.socket.server.upgrade.JettyRequestUpgradeStrategy;
|
61 | 61 | import org.springframework.web.reactive.socket.server.upgrade.ReactorNetty2RequestUpgradeStrategy;
|
62 | 62 | import org.springframework.web.reactive.socket.server.upgrade.ReactorNettyRequestUpgradeStrategy;
|
63 |
| -import org.springframework.web.reactive.socket.server.upgrade.TomcatRequestUpgradeStrategy; |
| 63 | +import org.springframework.web.reactive.socket.server.upgrade.StandardWebSocketUpgradeStrategy; |
64 | 64 | import org.springframework.web.reactive.socket.server.upgrade.UndertowRequestUpgradeStrategy;
|
65 | 65 | import org.springframework.web.server.WebFilter;
|
66 | 66 | import org.springframework.web.server.adapter.WebHttpHandlerBuilder;
|
@@ -205,58 +205,62 @@ public WebSocketService webSocketService() {
|
205 | 205 |
|
206 | 206 |
|
207 | 207 | @Configuration
|
208 |
| - static class ReactorNettyConfig extends AbstractHandlerAdapterConfig { |
| 208 | + static class TomcatConfig extends AbstractHandlerAdapterConfig { |
209 | 209 |
|
210 | 210 | @Override
|
211 | 211 | protected RequestUpgradeStrategy getUpgradeStrategy() {
|
212 |
| - return new ReactorNettyRequestUpgradeStrategy(); |
| 212 | + return new StandardWebSocketUpgradeStrategy(); |
213 | 213 | }
|
214 | 214 | }
|
215 | 215 |
|
| 216 | + |
216 | 217 | @Configuration
|
217 |
| - static class ReactorNetty2Config extends AbstractHandlerAdapterConfig { |
| 218 | + static class JettyConfig extends AbstractHandlerAdapterConfig { |
218 | 219 |
|
219 | 220 | @Override
|
220 | 221 | protected RequestUpgradeStrategy getUpgradeStrategy() {
|
221 |
| - return new ReactorNetty2RequestUpgradeStrategy(); |
| 222 | + return new JettyRequestUpgradeStrategy(); |
222 | 223 | }
|
223 | 224 | }
|
224 | 225 |
|
| 226 | + |
225 | 227 | @Configuration
|
226 |
| - static class TomcatConfig extends AbstractHandlerAdapterConfig { |
| 228 | + static class JettyCoreConfig extends AbstractHandlerAdapterConfig { |
227 | 229 |
|
228 | 230 | @Override
|
229 | 231 | protected RequestUpgradeStrategy getUpgradeStrategy() {
|
230 |
| - return new TomcatRequestUpgradeStrategy(); |
| 232 | + return new JettyCoreRequestUpgradeStrategy(); |
231 | 233 | }
|
232 | 234 | }
|
233 | 235 |
|
234 | 236 |
|
235 | 237 | @Configuration
|
236 |
| - static class UndertowConfig extends AbstractHandlerAdapterConfig { |
| 238 | + static class ReactorNettyConfig extends AbstractHandlerAdapterConfig { |
237 | 239 |
|
238 | 240 | @Override
|
239 | 241 | protected RequestUpgradeStrategy getUpgradeStrategy() {
|
240 |
| - return new UndertowRequestUpgradeStrategy(); |
| 242 | + return new ReactorNettyRequestUpgradeStrategy(); |
241 | 243 | }
|
242 | 244 | }
|
243 | 245 |
|
244 | 246 |
|
245 | 247 | @Configuration
|
246 |
| - static class JettyConfig extends AbstractHandlerAdapterConfig { |
| 248 | + static class ReactorNetty2Config extends AbstractHandlerAdapterConfig { |
247 | 249 |
|
248 | 250 | @Override
|
249 | 251 | protected RequestUpgradeStrategy getUpgradeStrategy() {
|
250 |
| - return new JettyRequestUpgradeStrategy(); |
| 252 | + return new ReactorNetty2RequestUpgradeStrategy(); |
251 | 253 | }
|
252 | 254 | }
|
253 | 255 |
|
| 256 | + |
254 | 257 | @Configuration
|
255 |
| - static class JettyCoreConfig extends AbstractHandlerAdapterConfig { |
| 258 | + static class UndertowConfig extends AbstractHandlerAdapterConfig { |
256 | 259 |
|
257 | 260 | @Override
|
258 | 261 | protected RequestUpgradeStrategy getUpgradeStrategy() {
|
259 |
| - return new JettyCoreRequestUpgradeStrategy(); |
| 262 | + return new UndertowRequestUpgradeStrategy(); |
260 | 263 | }
|
261 | 264 | }
|
| 265 | + |
262 | 266 | }
|
0 commit comments