Class StompSubProtocolHandler
java.lang.Object
org.springframework.web.socket.messaging.StompSubProtocolHandler
- All Implemented Interfaces:
Aware,ApplicationEventPublisherAware,SubProtocolHandler
public class StompSubProtocolHandler
extends Object
implements SubProtocolHandler, ApplicationEventPublisherAware
A
SubProtocolHandler for STOMP that supports versions 1.0, 1.1, and 1.2
of the STOMP specification.- Since:
- 4.0
- Author:
- Rossen Stoyanchev, Andy Wilkinson
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceContract for access to session counters. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the header set on the CONNECTED frame indicating the name of the user authenticated on the WebSocket session.static final intThis handler supports assembling large STOMP messages split into multiple WebSocket messages and STOMP clients (like stomp.js) indeed split large STOMP messages at 16K boundaries. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterSessionEnded(WebSocketSession session, CloseStatus closeStatus, MessageChannel outputChannel) Invoked after aWebSocketSessionhas ended.voidafterSessionStarted(WebSocketSession session, MessageChannel outputChannel) Invoked after aWebSocketSessionhas started.Return the configured error handler.Return the configured header initializer.intGet the configured message buffer size limit in bytes.getStats()Return a structured object with internal state and counters.