Juergen Hoeller
9d8e9cf243
Common root cause introspection algorithm in NestedExceptionUtils
...
Issue: SPR-15510
2017-05-03 11:31:28 +02:00
Rossen Stoyanchev
779779de7b
Refactor use of TaskScheduler in WebSocket Java config
...
Issue: SPR-15233
2017-04-11 17:41:41 -04:00
Rossen Stoyanchev
190408d1dc
Polish
2017-04-11 15:08:39 -04:00
Rossen Stoyanchev
71852a9241
Trap exception from SockJS HeartbeatTask
...
Issue: SPR-15307
2017-03-16 18:02:06 -04:00
Juergen Hoeller
47c4cf7abf
Drop support for Jetty 9.3 and OkHttp 2.x
...
Issue: SPR-15038
2017-03-06 17:54:02 +01:00
Juergen Hoeller
f84907a1fc
Polishing
2017-01-31 12:00:13 +01:00
Juergen Hoeller
1b2dc3638f
Revisit Assert to avoid single-arg assert methods (with refined messages)
...
Issue: SPR-15196
2017-01-30 22:15:55 +01:00
Juergen Hoeller
12973ac702
Polishing
2017-01-24 00:12:53 +01:00
Juergen Hoeller
f095aa20eb
Polishing
2017-01-23 21:28:40 +01:00
Juergen Hoeller
e94fa3f34d
WebSocketSession.getExtensions consistently exposes unmodifiable/empty list
...
Issue: SPR-15180
2017-01-23 21:28:30 +01:00
Rossen Stoyanchev
2e414ab25a
Well-known names for beans in message broker XML config
...
Issue: SPR-15068
2017-01-17 17:10:32 -05:00
Sam Brannen
9ed66bf2eb
Clean up warnings across code base
2017-01-07 01:54:38 +01:00
Juergen Hoeller
483abfe266
Avoid explicit DecoratedObjectFactory setup in JettyRequestUpgradeStrategy
...
Issue: SPR-14940
(cherry picked from commit 709d4ba )
2016-12-21 09:56:13 +01:00
Juergen Hoeller
82c1c859d9
Polishing
...
(cherry picked from commit 9cb4de8 )
2016-12-20 21:17:48 +01:00
Rossen Stoyanchev
47e141675f
Minor refactoring + polish reactive WebSocket support
...
Rename classes not specific to Tomcat:
TomcatWebSocketSession -> StandardWebSocketSession
TomcatWebSocketHandlerAdapter -> StandardWebSocketHandlerAdapter
WebSocketSessionSupport is renamed to AbstractWebSocketSession since it
actually is a WebSocketSession and pre-implements a number of methods.
ServerEndpointRegistration is now package private (mainly for use in
upgrade strategies) and renamed to DefaultServerEndpointConfig.
2016-12-19 18:16:36 -05:00
Juergen Hoeller
7867e56494
Polishing
2016-12-19 02:00:28 +01:00
Juergen Hoeller
b366e159f8
Fine-tuned handling of running state
...
Issue: SPR-14527
2016-12-14 21:59:49 +01:00
Rossen Stoyanchev
2191d80a31
Allow athentication at the STOMP level
...
This commit makes it possible for a ChannelInterceptor to override the
user header in a Spring Message that contains a STOMP CONNECT frame.
After the message is sent, the updated user header is observed and
saved to be associated with session thereafter.
Issue: SPR-14690
2016-12-13 17:59:51 -05:00
Juergen Hoeller
e49813f2c4
Polishing
2016-12-12 22:49:40 +01:00
Juergen Hoeller
52799c0e3d
Revised Jetty 9.3 vs 9.4 differentiation
...
Issue: SPR-14940
2016-12-09 15:21:31 +01:00
Brian Clozel
8d828dd16f
Update websocket support for Jetty 9.3+
...
Due to a few changes in `WebSocketServerFactory` and `Session` API, our
`JettyRequestUpgradeStrategy` and `JettyWebSocketSession` needed to
adapt. As of 9.3.15+ and 9.4.0+, some reflection is required to support
previous versions.
Spring 5.0 supports Jetty 9.3 and 9.4.
Issue: SPR-14940
2016-12-08 21:53:28 +01:00
Rossen Stoyanchev
b3fa1b40a0
Synchronized updates of STOMP header key cache
...
Issue: SPR-14901
2016-12-08 11:13:57 -05:00
Christoph Dreis
9b76dc2ab4
SPR-14901 Allow customization of STOMP message header encoding
...
Fixes SPR-14901
2016-12-08 11:13:56 -05:00
Juergen Hoeller
f6fc0a86b3
Polishing
...
(cherry picked from commit 0028b29 )
2016-12-01 20:11:47 +01:00
Rossen Stoyanchev
d201a222b8
Avoid locking in WebSocket session "close" callback
...
When processing a "close" notification from the server make an effort
to cancel any outstanding heartbeat but avoid going as far as acquiring
the responseLock since the server itself may already hold a lock of its
own leading to a potential deadlock.
The heartbeat task is now also further protected with an isClosed()
check in case the heartbeat does not get cancelled in a concurrent
scenario.
Issue: SPR-14917
2016-11-23 20:49:24 -05:00
Christoph Dreis
a929e9ccaa
Implement allocation-friendly method to get user count in SimpUserRegistry
...
SPR-14930
2016-11-21 21:02:10 +01:00
Juergen Hoeller
da63898d5f
Polishing
2016-11-21 17:36:04 +01:00
Juergen Hoeller
a49809b1a4
WebSocketServerSockJsSession uses dedicated disconnect lock
...
Issue: SPR-14917
2016-11-21 17:24:44 +01:00
Juergen Hoeller
a90e4b230f
Polishing
...
Issue: SPR-14867
2016-11-03 14:41:41 +01:00
Rossen Stoyanchev
87e01513fd
Check SockJS session type
...
This commits adds a validation check whether the SockJS session type
matches the transport type and rejects requests for which they
don't match.
Issue: SPR-14867
2016-11-03 09:35:30 +02:00
Juergen Hoeller
72e1f7e898
Avoid deadlock between SockJS heartbeat and XHR polling
...
Issue: SPR-14833
2016-10-28 23:34:19 +02:00
Juergen Hoeller
66722afda0
StompSubProtocolHandler does not insist on SimpMessageHeaderAccessor
...
Issue: SPR-14791
2016-10-12 17:08:05 +02:00
Juergen Hoeller
cfa0f6c84b
Consistent final logger fields
2016-10-04 23:00:36 +02:00
Juergen Hoeller
fb7ae010c8
Avoid unnecessary generics on emptyMap/Set/List
2016-09-26 18:04:49 +02:00
Juergen Hoeller
ab9fea6b8d
Polishing
...
(cherry picked from commit 3767092 )
2016-08-31 02:08:31 +02:00
Juergen Hoeller
4ef428de28
Polishing
2016-08-30 23:57:11 +02:00
Juergen Hoeller
03609c1518
Consistent comma splitting without regex overhead
...
Issue: SPR-14635
2016-08-30 23:56:58 +02:00
Rossen Stoyanchev
16879a2cf0
Harden synchronization around SockJS heartbeats
...
Create an explicit heartbeat task with an experiration flag so that
it can be cancelled reliably vs relying on the ScheduledFutureTask
cancel method which may return true even if the task is already
running.
Issue: SPR-14356
2016-08-30 09:26:15 -04:00
Rossen Stoyanchev
8b4f60b8e5
Support receipt on DISCONNECT with simple broker
...
Issue: SPR-14568
2016-08-29 18:31:19 -04:00
Juergen Hoeller
56b197bce1
Avoid unnecessary String concatenation in StompSubProtocolHandler
...
Issue: SPR-14624
2016-08-24 20:12:01 +02:00
Juergen Hoeller
59a24b406a
Polishing
2016-08-10 14:20:42 +02:00
Juergen Hoeller
99be15f58b
Revise encoding steps towards use of JDK Charset and StandardCharsets
...
Issue: SPR-14492
2016-07-19 23:43:06 +02:00
Juergen Hoeller
aaac199e8b
Consistently use constructor-based instantiation instead of Class.newInstance / BeanUtils.instantiate
...
Issue: SPR-14486
2016-07-19 19:21:06 +02:00
Juergen Hoeller
a1f5fb53db
Java 8 getParameterCount() instead of getParameterTypes().length
...
Issue: SPR-13188
2016-07-07 01:04:24 +02:00
Juergen Hoeller
da9c24c41e
Polishing
2016-07-06 18:11:33 +02:00
Juergen Hoeller
bc2c22d51e
Streamline XML namespace support towards unversioned schemas
...
This commit also removes support code for outdated options which were only available in older schema versions.
Issue: SPR-13499
2016-07-05 20:50:03 +02:00
Juergen Hoeller
12d373659a
Upgrade to Undertow 1.4 CR3 (and Jackson 2.8 GA)
...
This commit also renames WebSocketIntegrationTests to WebSocketHandshakeTests.
Issue: SPR-14328
2016-07-05 20:47:53 +02:00
Stephane Nicoll
00d2606b00
Explicit type can be replaced by <>
...
Issue: SPR-13188
2016-07-05 17:00:34 +02:00
Juergen Hoeller
b5db5d3aac
Broadly remove deprecated core classes and methods
...
Issue: SPR-14430
2016-07-05 15:52:49 +02:00
Juergen Hoeller
fb5a096ca2
Require Undertow 1.3 byte buffer pool
...
Issue: SPR-13495
2016-07-05 15:31:40 +02:00