Class BaseMessageBuilder<T,B extends BaseMessageBuilder<T,B>>

java.lang.Object
org.springframework.integration.support.AbstractIntegrationMessageBuilder<T>
org.springframework.integration.support.BaseMessageBuilder<T,B>
Type Parameters:
T - the payload type.
B - the target builder class type.
Direct Known Subclasses:
MessageBuilder

public abstract class BaseMessageBuilder<T,B extends BaseMessageBuilder<T,B>> extends AbstractIntegrationMessageBuilder<T>
The AbstractIntegrationMessageBuilder extension for the default logic to build message. The MessageBuilder is fully based on this class. This abstract class can be used for creating custom Message instances. For that purpose its build() method has to be overridden. The custom Message type could be used, for example, to hide sensitive information from payload and headers when message is logged. For this goal there would be enough to override GenericMessage.toString() and filter out (or mask) those headers which container such sensitive information.
Since:
6.4
Author:
Artem Bilan
See Also: