public abstract class AbstractSubProtocolEvent extends ApplicationEvent
| Modifier | Constructor and Description | 
|---|---|
| protected  | AbstractSubProtocolEvent(java.lang.Object source,
                        Message<byte[]> message)Create a new AbstractSubProtocolEvent. | 
| protected  | AbstractSubProtocolEvent(java.lang.Object source,
                        Message<byte[]> message,
                        java.security.Principal user)Create a new AbstractSubProtocolEvent. | 
| Modifier and Type | Method and Description | 
|---|---|
| Message<byte[]> | getMessage()Return the Message associated with the event. | 
| java.security.Principal | getUser()Return the user for the session associated with the event. | 
| java.lang.String | toString() | 
getTimestampprotected AbstractSubProtocolEvent(java.lang.Object source,
                                   Message<byte[]> message)
source - the component that published the event (never null)message - the incoming message (never null)protected AbstractSubProtocolEvent(java.lang.Object source,
                                   Message<byte[]> message,
                                   @Nullable
                                   java.security.Principal user)
source - the component that published the event (never null)message - the incoming message (never null)public Message<byte[]> getMessage()
StompHeaderAccessor headers = StompHeaderAccessor.wrap(message); headers.getSessionId(); headers.getSessionAttributes(); headers.getPrincipal();
@Nullable public java.security.Principal getUser()
public java.lang.String toString()
toString in class java.util.EventObject