| Modifier and Type | Field and Description |
|---|---|
| private final Message | |
| private final Principal |
| Access | Constructor and Description |
|---|---|
| protected | AbstractSubProtocolEvent(Object
the component that published the event (never source, Message<byte[]> null)the incoming message (never message)null)Create a new AbstractSubProtocolEvent. |
| protected | AbstractSubProtocolEvent(Object
the component that published the event (never source, Message<byte[]> null)the incoming message (never message, Principal user)null)Create a new AbstractSubProtocolEvent. |
| Modifier and Type | Method and Description |
|---|---|
| public Message | |
| public Principal | |
| public String | toString()
Overrides java. Returns a String representation of this EventObject. |
| message | back to summary |
|---|---|
| private final Message<byte[]> message | |
| user | back to summary |
|---|---|
| private final Principal user
| |
| AbstractSubProtocolEvent | back to summary |
|---|---|
| protected AbstractSubProtocolEvent(Object source, Message<byte[]> message) Create a new AbstractSubProtocolEvent. | |
| AbstractSubProtocolEvent | back to summary |
|---|---|
| protected AbstractSubProtocolEvent(Object source, Message<byte[]> message, Principal user) Create a new AbstractSubProtocolEvent. | |
| getMessage | back to summary |
|---|---|
| public Message Return the Message associated with the event. Here is an example of obtaining information about the session id or any headers in the message: StompHeaderAccessor headers = StompHeaderAccessor.wrap(message); headers.getSessionId(); headers.getSessionAttributes(); headers.getPrincipal(); | |
| getUser | back to summary |
|---|---|
| public Principal getUser() Return the user for the session associated with the event.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a String representation of this EventObject. | |