Java org.springframework.messaging.support MessageBuilder fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.messaging.support MessageBuilder fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.messaging.support MessageBuilder.

The text is from its open source code.

Method

Messagebuild()
MessageBuildercopyHeaders(@Nullable Map headersToCopy)
Copy the name-value pairs from the provided Map.
MessageBuildercopyHeadersIfAbsent(@Nullable Map headersToCopy)
Copy the name-value pairs from the provided Map.
MessagecreateMessage(@Nullable T payload, MessageHeaders messageHeaders)
A shortcut factory method for creating a message with the given payload and MessageHeaders .
MessageBuilderfromMessage(Message message)
Create a builder for a new Message instance pre-populated with all of the headers copied from the provided message.
MessageBuilderremoveHeader(String headerName)
Remove the value for the given header name.
MessageBuildersetHeader(String headerName, @Nullable Object headerValue)
Set the value for the given header name.
MessageBuildersetHeaderIfAbsent(String headerName, Object headerValue)
Set the value for the given header name only if the header name is not already associated with a value.
MessageBuilderwithPayload(T payload)
Create a new builder for a message with the given payload.