Example usage for org.springframework.web.socket.messaging AbstractSubProtocolEvent getMessage

List of usage examples for org.springframework.web.socket.messaging AbstractSubProtocolEvent getMessage

Introduction

In this page you can find the example usage for org.springframework.web.socket.messaging AbstractSubProtocolEvent getMessage.

Prototype

public Message<byte[]> getMessage() 

Source Link

Document

Return the Message associated with the event.

Usage

From source file:de.metas.ui.web.websocket.WebSocketConfig.java

private static final String extractSimpHeaderAsString(final AbstractSubProtocolEvent event, final String name) {
    final Object simpDestinationObj = event.getMessage().getHeaders().get(name);
    return simpDestinationObj == null ? null : simpDestinationObj.toString();
}