Class DefaultMessageBuilderFactory
java.lang.Object
org.springframework.integration.support.DefaultMessageBuilderFactory
- All Implemented Interfaces:
- MessageBuilderFactory
- Since:
- 4.0
- Author:
- Gary Russell, Artem Bilan
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
DefaultMessageBuilderFactorypublic DefaultMessageBuilderFactory()
 
- 
- 
Method Details- 
setReadOnlyHeadersSpecify 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 for- readOnlymode. Defaults to- MessageHeaders.IDand- MessageHeaders.TIMESTAMP.
- Since:
- 4.3.2
 
- 
addReadOnlyHeadersAdd headers to the configured list of read only headers.- Parameters:
- readOnlyHeaders- the additional headers.
- Since:
- 4.3.10
 
- 
fromMessage- Specified by:
- fromMessagein interface- MessageBuilderFactory
 
- 
withPayload- Specified by:
- withPayloadin interface- MessageBuilderFactory
 
 
-