message) {
super(source);
- Assert.notNull(message, "'message' must not be null");
+ Assert.notNull(message, "Message must not be null");
this.message = 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();
*
- *
*/
public Message getMessage() {
return this.message;
}
-
@Override
public String toString() {
return getClass().getSimpleName() + "[" + this.message + "]";
}
+
}