Top Description Constructors Methods
org.springframework.web.socket.messaging

public Class SessionConnectEvent

extends AbstractSubProtocolEvent
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
java.security.Principal, org.springframework.lang.Nullable, org.springframework.messaging.Message

Event raised when a new WebSocket client using a Simple Messaging Protocol (e.g. STOMP) as the WebSocket sub-protocol issues a connect request.

Note that this is not the same as the WebSocket session getting established but rather the client's first attempt to connect within the sub-protocol, for example sending the STOMP CONNECT frame.

Author
Rossen Stoyanchev
Since
4.0.3

Constructor Summary

AccessConstructor and Description
public
SessionConnectEvent(Object
the component that published the event (never null)
source
,
Message<byte[]>
the connect message
message
)

Create a new SessionConnectEvent.

public
SessionConnectEvent(Object source, Message<byte[]> message, Principal user)

Method Summary

Inherited from org.springframework.web.socket.messaging.AbstractSubProtocolEvent:
getMessagegetUsertoString

Constructor Detail

SessionConnectEventback to summary
public SessionConnectEvent(Object source, Message<byte[]> message)

Create a new SessionConnectEvent.

Parameters
source:Object

the component that published the event (never null)

message:Message<byte[]>

the connect message

SessionConnectEventback to summary
public SessionConnectEvent(Object source, Message<byte[]> message, Principal user)