public class StompHeaderAccessor extends SimpMessageHeaderAccessor
Use one of the static factory method in this class, then call getters and setters,
and at the end if necessary call NativeMessageHeaderAccessor.toMap()
to obtain the updated headers
or call toNativeHeaderMap()
to obtain only the STOMP-specific headers.
Modifier and Type | Field and Description |
---|---|
static String |
STOMP_ACCEPT_VERSION_HEADER |
static String |
STOMP_ACK_HEADER |
static String |
STOMP_CONTENT_LENGTH_HEADER |
static String |
STOMP_CONTENT_TYPE_HEADER |
static String |
STOMP_DESTINATION_HEADER |
static String |
STOMP_HEARTBEAT_HEADER |
static String |
STOMP_HOST_HEADER |
static String |
STOMP_ID_HEADER |
static String |
STOMP_LOGIN_HEADER |
static String |
STOMP_MESSAGE_HEADER |
static String |
STOMP_MESSAGE_ID_HEADER |
static String |
STOMP_NACK_HEADER |
static String |
STOMP_PASSCODE_HEADER |
static String |
STOMP_RECEIPT_HEADER |
static String |
STOMP_RECEIPT_ID_HEADER |
static String |
STOMP_SUBSCRIPTION_HEADER |
static String |
STOMP_VERSION_HEADER |
CONNECT_MESSAGE_HEADER, DESTINATION_HEADER, MESSAGE_TYPE_HEADER, SESSION_ID_HEADER, SUBSCRIPTION_ID_HEADER, USER_HEADER
NATIVE_HEADERS
logger
create, create, getDestination, getMessageType, getSessionId, getSubscriptionId, getUser, setMessageTypeIfNotSet, setSessionId, setSubscriptionId, setUser
addNativeHeader, getFirstNativeHeader, getNativeHeader, isModified, setNativeHeader, toMap
copyHeaders, copyHeadersIfAbsent, getContentType, getErrorChannel, getHeader, getId, getReplyChannel, getTimestamp, isReadOnly, removeHeader, removeHeaders, setErrorChannel, setErrorChannelName, setHeader, setHeaderIfAbsent, setReplyChannel, setReplyChannelName, toString, verifyType
public static final String STOMP_ID_HEADER
public static final String STOMP_HOST_HEADER
public static final String STOMP_ACCEPT_VERSION_HEADER
public static final String STOMP_MESSAGE_ID_HEADER
public static final String STOMP_RECEIPT_HEADER
public static final String STOMP_RECEIPT_ID_HEADER
public static final String STOMP_SUBSCRIPTION_HEADER
public static final String STOMP_VERSION_HEADER
public static final String STOMP_MESSAGE_HEADER
public static final String STOMP_ACK_HEADER
public static final String STOMP_NACK_HEADER
public static final String STOMP_LOGIN_HEADER
public static final String STOMP_PASSCODE_HEADER
public static final String STOMP_DESTINATION_HEADER
public static final String STOMP_CONTENT_TYPE_HEADER
public static final String STOMP_CONTENT_LENGTH_HEADER
public static final String STOMP_HEARTBEAT_HEADER
public static StompHeaderAccessor create(StompCommand command)
StompHeaderAccessor
for a new Message
.public static StompHeaderAccessor create(StompCommand command, Map<String,List<String>> headers)
StompHeaderAccessor
from parsed STOP frame content.public static StompHeaderAccessor wrap(Message<?> message)
StompHeaderAccessor
from the headers of an existing Message
.public Map<String,List<String>> toNativeHeaderMap()
toNativeHeaderMap
in class NativeMessageHeaderAccessor
public StompCommand updateStompCommandAsClientMessage()
public void updateStompCommandAsServerMessage()
public StompCommand getCommand()
public void setAcceptVersion(String acceptVersion)
public void setHost(String host)
public String getHost()
public void setDestination(String destination)
setDestination
in class SimpMessageHeaderAccessor
public long[] getHeartbeat()
public void setContentType(MimeType contentType)
setContentType
in class MessageHeaderAccessor
public Integer getContentLength()
public void setContentLength(int contentLength)
public void setHeartbeat(long cx, long cy)
public void setAck(String ack)
public String getAck()
public void setNack(String nack)
public String getNack()
public void setLogin(String login)
public String getLogin()
public void setPasscode(String passcode)
public String getPasscode()
public void setReceiptId(String receiptId)
public String getReceiptId()
public void setReceipt(String receiptId)
public String getReceipt()
public String getMessage()
public void setMessage(String content)
public String getMessageId()
public void setMessageId(String id)
public String getVersion()
public void setVersion(String version)