Constructor and Description |
---|
MessageValues(org.springframework.messaging.Message<?> message)
Create an instance from a
Message . |
MessageValues(Object payload,
Map<String,Object> headers) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
void |
copyHeadersIfAbsent(Map<String,Object> headersToCopy) |
Set<Map.Entry<String,Object>> |
entrySet() |
Object |
get(Object key) |
Map<String,Object> |
getHeaders() |
Object |
getPayload() |
boolean |
isEmpty() |
Set<String> |
keySet() |
Object |
put(String key,
Object value) |
void |
putAll(Map<? extends String,?> m) |
Object |
remove(Object key) |
void |
setPayload(Object payload)
Set the payload
|
int |
size() |
org.springframework.messaging.Message<?> |
toMessage()
Convert to a
Message using a the default
MessageBuilder . |
org.springframework.messaging.Message<?> |
toMessage(org.springframework.integration.support.MessageBuilderFactory messageBuilderFactory)
Convert to a
Message using a
MessageBuilderFactory . |
Collection<Object> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public MessageValues(org.springframework.messaging.Message<?> message)
Message
.message
- the messagepublic Object getPayload()
public void setPayload(Object payload)
payload
- any non null object.public org.springframework.messaging.Message<?> toMessage(org.springframework.integration.support.MessageBuilderFactory messageBuilderFactory)
Message
using a
MessageBuilderFactory
.messageBuilderFactory
- the MessageBuilderFactorypublic org.springframework.messaging.Message<?> toMessage()
Message
using a the default
MessageBuilder
.public boolean containsKey(Object key)
containsKey
in interface Map<String,Object>
public boolean containsValue(Object value)
containsValue
in interface Map<String,Object>
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.