Class MessageValues
- java.lang.Object
-
- org.springframework.cloud.stream.binder.MessageValues
-
-
Constructor Summary
Constructors Constructor Description MessageValues(Object payload, Map<String,Object> headers)
MessageValues(org.springframework.messaging.Message<?> message)
Create an instance from aMessage
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 aMessage
using a the defaultMessageBuilder
.org.springframework.messaging.Message<?>
toMessage(org.springframework.integration.support.MessageBuilderFactory messageBuilderFactory)
Convert to aMessage
using aMessageBuilderFactory
.Collection<Object>
values()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
getPayload
public Object getPayload()
- Returns:
- the payload
-
setPayload
public void setPayload(Object payload)
Set the payload.- Parameters:
payload
- any non null object.
-
toMessage
public org.springframework.messaging.Message<?> toMessage(org.springframework.integration.support.MessageBuilderFactory messageBuilderFactory)
Convert to aMessage
using aMessageBuilderFactory
.- Parameters:
messageBuilderFactory
- the MessageBuilderFactory- Returns:
- the Message
-
toMessage
public org.springframework.messaging.Message<?> toMessage()
Convert to aMessage
using a the defaultMessageBuilder
.- Returns:
- the Message
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceMap<String,Object>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceMap<String,Object>
-
-