Class DefaultMessageBuilderFactory
java.lang.Object
org.springframework.integration.support.DefaultMessageBuilderFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddReadOnlyHeaders(String... readOnlyHeaders) Add headers to the configured list of read only headers.<T> MessageBuilder<T> fromMessage(Message<T> message) voidsetReadOnlyHeaders(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 forreadOnlymode. Defaults toMessageHeaders.IDandMessageHeaders.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:
fromMessagein interfaceMessageBuilderFactory
-
withPayload
- Specified by:
withPayloadin interfaceMessageBuilderFactory
-