Class DefaultMessageBuilderFactory
java.lang.Object
org.springframework.integration.support.DefaultMessageBuilderFactory
- All Implemented Interfaces:
MessageBuilderFactory
public class DefaultMessageBuilderFactory extends Object implements MessageBuilderFactory
- Since:
- 4.0
- Author:
- Gary Russell, Artem Bilan
-
Constructor Summary
Constructors Constructor Description DefaultMessageBuilderFactory()
-
Method Summary
Modifier and Type Method Description void
addReadOnlyHeaders(String... readOnlyHeaders)
Add headers to the configured list of read only headers.<T> MessageBuilder<T>
fromMessage(Message<T> message)
void
setReadOnlyHeaders(String... readOnlyHeaders)
Specify a list of headers which should be considered as a read only and prohibited from the population to the message.<T> MessageBuilder<T>
withPayload(T payload)
-
Constructor Details
-
DefaultMessageBuilderFactory
public DefaultMessageBuilderFactory()
-
-
Method Details
-
setReadOnlyHeaders
Specify a list of headers which should be considered as a read only and prohibited from the population to the message.- Parameters:
readOnlyHeaders
- the list of headers forreadOnly
mode. Defaults toMessageHeaders.ID
andMessageHeaders.TIMESTAMP
.- Since:
- 4.3.2
-
addReadOnlyHeaders
Add headers to the configured list of read only headers.- Parameters:
readOnlyHeaders
- the additional headers.- Since:
- 4.3.10
-
fromMessage
- Specified by:
fromMessage
in interfaceMessageBuilderFactory
-
withPayload
- Specified by:
withPayload
in interfaceMessageBuilderFactory
-