public final class StompMessageSendingTemplate
extends java.lang.Object
构造器和说明 |
---|
StompMessageSendingTemplate(StompMessageOperations stompMessageOperations) |
限定符和类型 | 方法和说明 |
---|---|
void |
send(java.lang.String destination,
java.lang.String payload)
给指定通道发送消息
|
void |
send(java.lang.String destination,
java.lang.String payload,
java.util.List<Header> headers)
给指定通道发送消息
|
void |
send(java.lang.String destination,
java.lang.String payload,
java.lang.String contentType)
给指定通道发送消息
|
void |
send(java.lang.String destination,
java.lang.String payload,
java.lang.String contentType,
java.util.List<Header> headers)
给指定通道发送消息
|
void |
send(WebSocket webSocket,
Message message)
指定链接发送消息
|
Message |
transform(java.lang.String command,
java.lang.String destination,
java.lang.String payload)
消息转换
|
Message |
transform(java.lang.String command,
java.lang.String destination,
java.lang.String payload,
java.util.List<Header> headers)
消息转换
|
Message |
transform(java.lang.String command,
java.lang.String destination,
java.lang.String payload,
java.lang.String contentType)
消息转换
|
Message |
transform(java.lang.String command,
java.lang.String destination,
java.lang.String payload,
java.lang.String contentType,
java.util.List<Header> headers)
消息转换
|
public StompMessageSendingTemplate(StompMessageOperations stompMessageOperations)
stompMessageOperations
- public void send(java.lang.String destination, java.lang.String payload)
destination
- payload
- public void send(java.lang.String destination, java.lang.String payload, java.util.List<Header> headers)
destination
- payload
- headers
- public void send(java.lang.String destination, java.lang.String payload, java.lang.String contentType)
destination
- payload
- contentType
- public void send(java.lang.String destination, java.lang.String payload, java.lang.String contentType, java.util.List<Header> headers)
destination
- 通道,支持模糊匹配,如/topic/**payload
- 消息内容contentType
- 消息类型headers
- 消息head信息public Message transform(java.lang.String command, java.lang.String destination, java.lang.String payload)
command
- destination
- payload
- public Message transform(java.lang.String command, java.lang.String destination, java.lang.String payload, java.lang.String contentType)
command
- destination
- payload
- contentType
- public Message transform(java.lang.String command, java.lang.String destination, java.lang.String payload, java.util.List<Header> headers)
command
- destination
- payload
- headers
-