Uses of Class
org.springframework.integration.support.MessageBuilder
-
Uses of MessageBuilder in org.springframework.integration.support
Modifier and TypeMethodDescriptionMessageBuilder.copyHeaders
(Map<String, ?> headersToCopy) Copy the name-value pairs from the provided Map.MessageBuilder.copyHeadersIfAbsent
(Map<String, ?> headersToCopy) Copy the name-value pairs from the provided Map.<T> MessageBuilder<T>
DefaultMessageBuilderFactory.fromMessage
(Message<T> message) static <T> MessageBuilder<T>
MessageBuilder.fromMessage
(Message<T> message) Create a builder for a newMessage
instance pre-populated with all of the headers copied from the provided message.MessageBuilder.popSequenceDetails()
MessageBuilder.pushSequenceDetails
(Object correlationId, int sequenceNumber, int sequenceSize) MessageBuilder.readOnlyHeaders
(String... readOnlyHeaders) Specify a list of headers which should be considered as read only and prohibited from being populated in the message.MessageBuilder.removeHeader
(String headerName) Remove the value for the given header name.MessageBuilder.removeHeaders
(String... headerPatterns) Removes all headers provided via array of 'headerPatterns'.MessageBuilder.setCorrelationId
(Object correlationId) MessageBuilder.setErrorChannel
(MessageChannel errorChannel) MessageBuilder.setErrorChannelName
(String errorChannelName) MessageBuilder.setExpirationDate
(Long expirationDate) MessageBuilder.setExpirationDate
(Date expirationDate) Set the value for the given header name.MessageBuilder.setHeaderIfAbsent
(String headerName, Object headerValue) Set the value for the given header name only if the header name is not already associated with a value.MessageBuilder.setPriority
(Integer priority) MessageBuilder.setReplyChannel
(MessageChannel replyChannel) MessageBuilder.setReplyChannelName
(String replyChannelName) MessageBuilder.setSequenceNumber
(Integer sequenceNumber) MessageBuilder.setSequenceSize
(Integer sequenceSize) <T> MessageBuilder<T>
DefaultMessageBuilderFactory.withPayload
(T payload) static <T> MessageBuilder<T>
MessageBuilder.withPayload
(T payload) Create a builder for a newMessage
instance with the provided payload.