Example usage for Java org.springframework.messaging.support MessageBuilder fields, constructors, methods, implement or subclass
The text is from its open source code.
Message | build() |
MessageBuilder | copyHeaders(@Nullable Map Copy the name-value pairs from the provided Map. |
MessageBuilder | copyHeadersIfAbsent(@Nullable Map Copy the name-value pairs from the provided Map. |
Message | createMessage(@Nullable T payload, MessageHeaders messageHeaders) A shortcut factory method for creating a message with the given payload and MessageHeaders . |
MessageBuilder | fromMessage(Message Create a builder for a new Message instance pre-populated with all of the headers copied from the provided message. |
MessageBuilder | removeHeader(String headerName) Remove the value for the given header name. |
MessageBuilder | setHeader(String headerName, @Nullable Object headerValue) 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 | withPayload(T payload) Create a new builder for a message with the given payload. |