Sam Brannen
2e1374b459
Update copyright headers
2023-02-19 13:41:36 +01:00
rstoyanchev
9fcafd2650
WebSocketConnectionManager accepts prepared URI
...
Closes gh-28524
2023-02-13 18:39:19 +00:00
rstoyanchev
17bc3facaa
Polishing contribution
...
Closes gh-29220
2023-02-13 09:16:33 +00:00
Anatolii Zhmaiev
1de9426df0
Set reason for WebSocket CloseStatus.SESSION_NOT_RELIABLE
...
See gh-29220
2023-02-13 09:16:33 +00:00
rstoyanchev
a7ec6b4a2a
Unwrap session before selecting stats counter
...
See gh-29375
2023-02-08 18:12:42 +00:00
Sam Brannen
0502d18e3d
Update copyright headers
2023-01-19 16:20:03 +01:00
Sam Brannen
c4c786596f
Migrate to Mockito.mock(T...) where feasible
2023-01-19 16:20:02 +01:00
Sam Brannen
a4956dfe26
Update copyright headers
2023-01-11 13:52:20 +01:00
Krzysztof Krason
afb8a0d1b1
Use new Java features (switch expressions, text blocks, new JDK methods)
...
Closes gh-29747
2023-01-11 13:51:28 +01:00
Sam Brannen
46fc28fd1a
Clean up Javadoc and source code regarding " ." typos
2022-12-12 16:31:14 +01:00
Sam Brannen
9b38e43c17
Use URI#create instead of URI constructor where feasible in spring-websocket
2022-12-09 13:27:34 -05:00
Sam Brannen
ad60164911
Update copyright headers for source code changed since August 2022
...
The changes in this commit were performed using the newly introduced
update_copyright_headers.sh script.
2022-11-29 19:38:42 +01:00
Sam Brannen
052542254a
Polishing
2022-11-28 17:51:18 +01:00
Sam Brannen
db02c96c55
Avoid deprecation warnings in tests
2022-11-28 17:40:46 +01:00
Sam Brannen
164141a63e
Fix broken tests in SockJsServiceTests
...
See gh-29594
2022-11-28 16:52:15 +01:00
Sam Brannen
0a731413de
Polishing
2022-11-28 16:45:38 +01:00
Sam Brannen
6e5dd64025
Polish contribution
...
See gh-29594
2022-11-28 16:42:22 +01:00
Aashay Chapatwala
650875468c
Add title to SockJS iFrames for accessibility compliance
...
Closes gh-29594
2022-11-28 16:33:41 +01:00
Juergen Hoeller
21d3a7529c
Consistent documentation references to Jakarta WebSocket (2.1)
...
Closes gh-29581
2022-11-25 17:07:30 +01:00
Juergen Hoeller
9c7b471634
Deprecate JettyWebSocketClient in favor of StandardWebSocketClient
...
JettyWebSocketClient only supported on Jetty 11, to be phased out.
Closes gh-29576
2022-11-25 17:06:15 +01:00
Juergen Hoeller
45d45c2989
Early support for Jetty 12 (developed against 12.0.0.alpha2)
...
Reflective getHeaders calls to be revisited; see GitHub issue #8938 in Jetty project.
HttpOutput optimization commented out still in order to avoid alpha build dependency.
See gh-29575
2022-11-25 17:04:48 +01:00
Sam Brannen
7fcd1de8e3
Use AssertJ's isEmpty() instead of hasSize(0)
...
Achieved via global search-and-replace.
2022-11-22 17:11:50 +01:00
Sam Brannen
d5b0b2b1a1
User AssertJ's hasSize() for arrays
...
Achieved via global search-and-replace.
2022-11-22 17:03:45 +01:00
Sam Brannen
36f7597f25
Use AssertJ's hasSize() for collections and maps
...
Achieved via a global search-and-replace.
2022-11-22 16:50:10 +01:00
Sam Brannen
917c41fd52
Use Set.of() for constant sets where appropriate
2022-11-21 16:49:07 +01:00
Arjen Poutsma
792371ac1f
Generalize Jackson version numbers
...
This commit removes specific version info from Jackson codecs and
converters, in favor of generic info or removing the version information
all together.
See gh-29508
2022-11-17 16:56:38 +01:00
Sam Brannen
abf3400c07
Use Assert.state() where appropriate
2022-11-15 12:31:10 +01:00
rstoyanchev
e0b405869f
Merge branch '5.3.x'
2022-11-11 15:16:26 +00:00
rstoyanchev
8ade083a05
Filter out null WebSocketSession attributes
...
Closes gh-29315
2022-11-11 11:20:18 +00:00
Juergen Hoeller
d7d44c6c51
Polishing
2022-11-10 18:26:49 +01:00
Sam Brannen
95f3337bb5
Revise contribution
...
This commit reverts changes to AbstractCacheManager since iterating
over the caches in a for-loop and a stream is duplicated effort.
This commit reverts changes to DefaultRenderingResponseBuilder,
RouterFunctions, and OriginHandshakeInterceptor since order matters for
those use cases: they were originally based on the semantics of
LinkedHashSet or LinkedHashMap; whereas, Set.copyOf() and Map.copyOf()
do not provide any guarantees regarding ordering.
This commit also applies analogous changes to "sibling" implementations
across Servlet mocks as well as Web MVC and WebFlux.
See gh-29321
2022-11-08 14:14:29 +01:00
divcon
ba136dcf40
Replace use of Collections.unmodifiable*() methods where appropriate
...
Closes gh-29321
2022-11-08 13:51:31 +01:00
Juergen Hoeller
a2ac764f9c
Reuse StandardWebSocketUpgradeStrategy as a base class for Tomcat etc
...
Includes non-reflective instantiation of well-known strategy classes.
See gh-29436
2022-11-07 17:35:31 +01:00
Juergen Hoeller
19cf503534
Align with Servlet 6.0 and introduce support for Jakarta WebSocket 2.1
...
Includes corresponding build upgrade to Tomcat 10.1.1 and Undertow 2.3.0
(while retaining runtime compatibility with Tomcat 10.0 and Undertow 2.2)
Closes gh-29435
Closes gh-29436
2022-11-06 16:08:30 +01:00
Andy Wilkinson
95395b53d5
Make WebSocket upgrade strategies compatible with Tomcat 10.1
2022-11-06 00:30:35 +01:00
Sam Brannen
82823517fa
Merge branch '5.3.x'
...
# Conflicts:
# build.gradle
# spring-messaging/src/main/java/org/springframework/messaging/rsocket/DefaultRSocketRequesterBuilder.java
# spring-messaging/src/main/java/org/springframework/messaging/rsocket/MetadataEncoder.java
# spring-messaging/src/main/java/org/springframework/messaging/simp/broker/OrderedMessageChannelDecorator.java
# spring-messaging/src/main/java/org/springframework/messaging/simp/user/DefaultUserDestinationResolver.java
# spring-test/src/main/java/org/springframework/test/web/servlet/request/MockHttpServletRequestBuilder.java
# spring-web/src/main/java/org/springframework/http/HttpRange.java
# spring-webflux/src/main/java/org/springframework/web/reactive/result/view/RedirectView.java
# spring-webflux/src/main/java/org/springframework/web/reactive/socket/CloseStatus.java
# spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/RedirectViewControllerRegistration.java
2022-11-05 14:50:18 +01:00
Sam Brannen
5f02323b9c
Avoid String allocations with Assert.isTrue()
2022-11-05 14:40:45 +01:00
Sam Brannen
723e09c164
Polishing
...
See gh-29408
2022-11-02 12:46:44 +01:00
Kulwant Singh
5245327962
Fix tests and checkstyle violations
...
See gh-29408
2022-11-02 12:46:44 +01:00
Kulwant Singh
20d0becbc6
Fix Javadoc links
...
See gh-29408
2022-11-02 12:46:44 +01:00
Kulwant Singh
5f2a6fd7f1
Use List.of() instead of Arrays.asList() where appropriate
...
See gh-29408
2022-11-02 12:46:44 +01:00
Kulwant Singh
eec3c6f7bb
Replace concatenated strings with text blocks
...
See gh-29408
2022-11-02 12:46:44 +01:00
Kulwant Singh
19955c5b77
Remove unnecessary calls to toString()
...
See gh-29408
2022-11-02 12:46:44 +01:00
Kulwant Singh
bd57d860d2
Use StandardCharsets
...
See gh-29408
2022-11-02 12:46:44 +01:00
Sébastien Deleuze
aa776e40f9
Ensure classpath checks can be evaluated at build-time
...
Closes gh-29352
2022-10-19 10:49:11 +02:00
Adam Ostrožlík
0ccb64fe10
Replace Collectors.toList with Stream.toList
...
Closes gh-29203
2022-09-26 18:32:01 +02:00
Sam Brannen
321092ce6f
Consistent use of @Deprecated(since = "6.0")
2022-09-20 14:34:24 +02:00
rstoyanchev
c854e35c9d
Merge branch '5.3.x'
2022-09-12 12:27:31 +01:00
rstoyanchev
4eabe29b9a
Polishing contribution
...
Closes gh-28785
2022-09-12 10:52:53 +01:00
npriebe
cd10171f98
Make WebSocketConnectionManager#isConnected public
...
See gh-28785
2022-09-12 09:54:57 +01:00