public abstract class AbstractIntegrationMessageBuilder<T> extends Object
Constructor and Description |
---|
AbstractIntegrationMessageBuilder() |
public abstract AbstractIntegrationMessageBuilder<T> setHeader(String headerName, Object headerValue)
null
, the header will be removed.headerName
- The header name.headerValue
- The header value.public abstract AbstractIntegrationMessageBuilder<T> setHeaderIfAbsent(String headerName, Object headerValue)
headerName
- The header name.headerValue
- The header value.public abstract AbstractIntegrationMessageBuilder<T> removeHeaders(String... headerPatterns)
headerPatterns
- The header patterns.public abstract AbstractIntegrationMessageBuilder<T> removeHeader(String headerName)
headerName
- The header name.public abstract AbstractIntegrationMessageBuilder<T> copyHeaders(Map<String,?> headersToCopy)
copyHeadersIfAbsent(Map)
to avoid overwriting values. Note that the 'id' and 'timestamp' header values
will never be overwritten.headersToCopy
- The headers to copy.MessageHeaders.ID
,
MessageHeaders.TIMESTAMP
public abstract AbstractIntegrationMessageBuilder<T> copyHeadersIfAbsent(Map<String,?> headersToCopy)
headersToCopy
- The headers to copy.public AbstractIntegrationMessageBuilder<T> setExpirationDate(Long expirationDate)
public AbstractIntegrationMessageBuilder<T> setExpirationDate(Date expirationDate)
public AbstractIntegrationMessageBuilder<T> setCorrelationId(Object correlationId)
public AbstractIntegrationMessageBuilder<T> pushSequenceDetails(Object correlationId, int sequenceNumber, int sequenceSize)
public AbstractIntegrationMessageBuilder<T> popSequenceDetails()
protected abstract Object getCorrelationId()
protected abstract Object getSequenceNumber()
protected abstract Object getSequenceSize()
public AbstractIntegrationMessageBuilder<T> setReplyChannel(MessageChannel replyChannel)
public AbstractIntegrationMessageBuilder<T> setReplyChannelName(String replyChannelName)
public AbstractIntegrationMessageBuilder<T> setErrorChannel(MessageChannel errorChannel)
public AbstractIntegrationMessageBuilder<T> setErrorChannelName(String errorChannelName)
public AbstractIntegrationMessageBuilder<T> setSequenceNumber(Integer sequenceNumber)
public AbstractIntegrationMessageBuilder<T> setSequenceSize(Integer sequenceSize)
public AbstractIntegrationMessageBuilder<T> setPriority(Integer priority)