Juergen Hoeller
d512aafc36
Avoid javadoc references to deprecated types/methods
...
(cherry picked from commit 68997d8416 )
1 year ago
Sébastien Deleuze
4fbca99f20
Remove unnecessary HandshakeHandlerRuntimeHints
...
Those hints are not needed anymore as of Spring Framework 6.1.
Backport of gh-34032.
Closes gh-34033
1 year ago
Juergen Hoeller
aaf2e8fbe6
Polishing
...
(cherry picked from commit edf7f3cd43 )
1 year ago
Sam Brannen
4d792d0e45
Remove mentions of Joda-Time support
...
Since Joda-Time support was removed in Spring Framework 6.0, this commit
removes obsolete mentions of Joda-Time in the reference guide and Javadoc.
See gh-27426
Closes gh-33881
1 year ago
Juergen Hoeller
c765d03a59
Use Locale.ROOT consistently for toLower/toUpperCase
...
Closes gh-33708
1 year ago
rstoyanchev
23656aebc6
Use Locale.ROOT consistently for toLower/toUpperCase
...
See gh-33708
1 year ago
jun
a668580f77
Use HttpMethod.GET for better readability
...
See gh-33634
1 year ago
Juergen Hoeller
4f02be263f
Polishing
2 years ago
Juergen Hoeller
d151931f86
Skip close lock if acquired by other thread already
...
Closes gh-32445
2 years ago
Sébastien Deleuze
290a41d398
Refine null-safety in more modules
...
This commit refines the null-safety in all remaining modules
except spring-test.
See gh-32475
2 years ago
Sébastien Deleuze
a63ebe7e9d
Refine null-safety in spring-web and spring-websocket
...
See gh-32475
2 years ago
rstoyanchev
78f0688ed0
Fix javadoc error
...
See gh-32205
2 years ago
rstoyanchev
504b7619bd
WebSocketMessageBrokerConfigurer allows to configure Lifecycle phase
...
Closes gh-32205
2 years ago
rstoyanchev
2dd22f64e1
Improve cancellation of read/write inactivity
...
The cancellation of read and write inactivity tasks was done via
WebSocketHandler#afterConnectionClosed, relying on the WebSocket
library to always invoke the callback.
This change moves the cancellation to the `close` method instead
that in turn is called from DefaultStompSession#resetConnection,
in effect making the cancellation more proactive and aligned with
connection cleanup in DefaultStompSession vs relying on a
subsequent call from the WebSocket library after the connection
is closed.
Closes gh-32195
2 years ago
rstoyanchev
6a5953dca3
Polishing in WebSocketStompClient
...
See gh-32195
2 years ago
Juergen Hoeller
b4153618a4
Consistent Lock field declaration (instead of ReentrantLock field type)
2 years ago
rstoyanchev
5851cdc679
Refine invocation of checkSessions
...
It makes more sense to call this from afterConnectionEstablished as it
relates to the creation of new sessions.
See gh-32195
2 years ago
Stéphane Nicoll
122d8b9e4e
Polish
2 years ago
Stéphane Nicoll
1f2d29ee08
Polish
2 years ago
Juergen Hoeller
f5b4f7d9e8
Support for SSLContext configuration on StandardWebSocketClient
...
Closes gh-30680
2 years ago
Juergen Hoeller
989625d2d4
Allow SockJsUrlInfo to be overridden in SockJsClient
...
Closes gh-25888
2 years ago
Stéphane Nicoll
eefe65d95a
Upgrade copyright year of changed files
...
See gh-31916
2 years ago
Yanming Zhou
ea5ef098cf
Use Map.computeIfAbsent() where feasible
...
See gh-31916
2 years ago
Stéphane Nicoll
a6e87b40c7
Polish "Use diamond operator where feasible"
...
See gh-31916
2 years ago
Yanming Zhou
094479b55f
Use diamond operator where feasible
...
See gh-31916
2 years ago
Yanming Zhou
4a450c6fab
Use enhanced for loop where feasible
...
See gh-31916
2 years ago
Baoyi Chen
e00a882333
Complete Jetty frame callback when opcode is not PONG
...
The onWebSocketFrame method should complete callback.
For more details, see https://github.com/jetty/jetty.project/issues/11088 .
Closes gh-31869
2 years ago
Arjen Poutsma
24f8eac12a
Improve ByteBuffer copy method
...
This commit improves JettyWebSocketHandlerAdapter::copyByteBuffer so
that it allocates a buffer large enough for the remaining bytes
contained in the source, instead of allocating one with the capacity of
the source.
Closes gh-31857
2 years ago
Stéphane Nicoll
d0574197ea
Polish "Use String.repeat instead of explicit cycle"
...
See gh-31802
2 years ago
Adam Ostrožlík
63b2787da6
Use String.repeat instead of explicit cycle
...
See gh-31802
2 years ago
Yanming Zhou
afcd03bddc
Replace assertThat(x.isEmpty()).isTrue() with assertThat(x).isEmpty()
...
Search for : assertThat\((.+).isEmpty\(\)\).isTrue\(\)
Replace with : assertThat($1).isEmpty()
Search for : assertThat\((.+).isEmpty\(\)\).isFalse\(\)
Replace with : assertThat($1).isNotEmpty()
Closes gh-31758
2 years ago
Yanming Zhou
e2852e7355
Replace assertThat(x.contains(y)).isTrue() with assertThat(x).contains(y)
...
Search for : assertThat\((.+)\.contains\((.+)\)\)\.isTrue\(\)
Replace with : assertThat($1).contains($2)
Search for : assertThat\((.+)\.contains\((.+)\)\)\.isFalse\(\)
Replace with : assertThat($1).doesNotContain($2)
Closes gh-31762
2 years ago
Yanming Zhou
59815cefce
Replace assertThat(x.get(i)). with assertThat(x).element(i).
...
Search for : assertThat\((.+)\.get\((\d+)\)\)\.
Replace with : assertThat($1).element($2).
Closes gh-31759
2 years ago
Yanming Zhou
6f11716b6f
Use idiomatic AssertJ map assertions
...
See gh-31752
2 years ago
rstoyanchev
0e6e225fb9
Implement messageSize methods in JettyWebSocketSession
...
Closes gh-28325
2 years ago
Stéphane Nicoll
f8a40555af
Upgrade copyright year of changed file
...
See gh-31694
2 years ago
Yanming Zhou
64d5e904e8
Use AssertJ isInstanceOf where feasible
...
See gh-31694
2 years ago
Stéphane Nicoll
4e2d357318
Remove list of supported websocket servers
...
This commit removes a list of hardcoded servers and version as this is
bound to get outdated and the reference guide/wiki is a more suitable
place for this.
2 years ago
Stéphane Nicoll
264ec517f2
Polish
2 years ago
rstoyanchev
8ffbecc7c3
WebSocketMessageBrokerStats implements SmartInitializingSingleton
...
Closes gh-26536
2 years ago
Juergen Hoeller
fff50657d2
Polishing
2 years ago
Stéphane Nicoll
f5453cc445
Polish
2 years ago
Sam Brannen
2d792f000a
Polish "Apply SingleSpaceSeparator Checkstyle module"
...
See gh-31469
2 years ago
Johnny Lim
64e9fcad53
Apply SingleSpaceSeparator Checkstyle module
...
This commit also fixes its violations.
Closes gh-31469
2 years ago
rstoyanchev
a8019f2d0b
Create reusable DisconnectedClientHelper
...
See gh-26181
2 years ago
Johnny Lim
919faa2ce2
Order modifiers to align with JLS
...
This commit also applies Checkstyle ModifierOrder to enforce it.
See gh-31368
2 years ago
rstoyanchev
3277b0d6ac
Handle STOMP messages to user destination in order
...
Closes gh-31395
2 years ago
Rossen Stoyanchev
9eb39e182e
Polishing
...
See gh-21798
2 years ago
rstoyanchev
a205eab618
Handle STOMP messages from client in order
...
See gh-21798
2 years ago
rstoyanchev
d62d7f5ff1
Polishing
...
See gh-21798
2 years ago