Codota Logo
MessageBuilder.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.springframework.integration.support.MessageBuilder
constructor

Best Java code snippets using org.springframework.integration.support.MessageBuilder.<init> (Showing top 4 results out of 315)

  • Common ways to obtain MessageBuilder
private void myMethod () {
MessageBuilder m =
  • Codota IconMessageBuilder messageBuilder;String headerName;Object headerValue;messageBuilder.setHeader(headerName, headerValue)
  • Smart code suggestions by Codota
}
origin: spring-projects/spring-integration

/**
 * Create a builder for a new {@link Message} instance with the provided payload.
 *
 * @param payload the payload for the new message
 * @param <T> The type of the payload.
 * @return A MessageBuilder.
 */
public static <T> MessageBuilder<T> withPayload(T payload) {
  return new MessageBuilder<T>(payload, null);
}
origin: spring-projects/spring-integration

/**
 * Create a builder for a new {@link Message} instance pre-populated with all of the headers copied from the
 * provided message. The payload of the provided Message will also be used as the payload for the new message.
 *
 * @param message the Message from which the payload and all headers will be copied
 * @param <T> The type of the payload.
 * @return A MessageBuilder.
 */
public static <T> MessageBuilder<T> fromMessage(Message<T> message) {
  Assert.notNull(message, "message must not be null");
  return new MessageBuilder<T>(message.getPayload(), message);
}
origin: org.springframework.integration/spring-integration-core

/**
 * Create a builder for a new {@link Message} instance with the provided payload.
 *
 * @param payload the payload for the new message
 * @param <T> The type of the payload.
 * @return A MessageBuilder.
 */
public static <T> MessageBuilder<T> withPayload(T payload) {
  return new MessageBuilder<T>(payload, null);
}
origin: org.springframework.integration/spring-integration-core

/**
 * Create a builder for a new {@link Message} instance pre-populated with all of the headers copied from the
 * provided message. The payload of the provided Message will also be used as the payload for the new message.
 *
 * @param message the Message from which the payload and all headers will be copied
 * @param <T> The type of the payload.
 * @return A MessageBuilder.
 */
public static <T> MessageBuilder<T> fromMessage(Message<T> message) {
  Assert.notNull(message, "message must not be null");
  return new MessageBuilder<T>(message.getPayload(), message);
}
org.springframework.integration.supportMessageBuilder<init>

Javadoc

Private constructor to be invoked from the static factory methods only.

Popular methods of MessageBuilder

  • build
  • withPayload
    Create a builder for a new Message instance with the provided payload.
  • setHeader
    Set the value for the given header name. If the provided value is null, the header will be removed.
  • fromMessage
    Create a builder for a new Message instance pre-populated with all of the headers copied from the pr
  • copyHeaders
    Copy the name-value pairs from the provided Map. This operation will overwrite any existing values.
  • setReplyChannel
  • setCorrelationId
  • setSequenceNumber
  • setSequenceSize
  • setPriority
  • setErrorChannel
  • containsReadOnly
  • setErrorChannel,
  • containsReadOnly,
  • copyHeadersIfAbsent,
  • pushSequenceDetails,
  • readOnlyHeaders,
  • removeHeader,
  • setExpirationDate,
  • getHeaders,
  • getPayload

Popular in Java

  • Start an intent from android
  • getSystemService (Context)
  • runOnUiThread (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now