public class MessageBuilder extends Object
Message.
Users must use this builder to create a message instance.| Modifier and Type | Field and Description |
|---|---|
static String |
BODY_CONTENT_TYPE_JMS_PROPERTY |
static String |
BODY_ENCODING_JMS_PROPERTY |
| Constructor and Description |
|---|
MessageBuilder() |
| Modifier and Type | Method and Description |
|---|---|
javax.jms.Message |
build(JmsSupport jmsSupport,
javax.jms.Session session,
JmsConfig config)
Creates a
Message based on the provided configurations |
Object |
getBody() |
String |
getContentType() |
String |
getCorrelationId() |
String |
getEncoding() |
String |
getJmsType() |
JmsxProperties |
getJmsxProperties() |
Map<String,Object> |
getProperties() |
JmsDestination |
getReplyTo() |
boolean |
isSendContentType() |
boolean |
isSendEncoding() |
public static final String BODY_CONTENT_TYPE_JMS_PROPERTY
public static final String BODY_ENCODING_JMS_PROPERTY
public javax.jms.Message build(JmsSupport jmsSupport, javax.jms.Session session, JmsConfig config) throws javax.jms.JMSException
Message based on the provided configurationsjmsSupport - the JmsSupport used to create the JMSReplyTo Destinationsession - the current Sessionconfig - the current JmsProducerConfigMessage created by the userjavax.jms.JMSException - if an error occurspublic Object getBody()
public boolean isSendContentType()
public String getContentType()
public String getJmsType()
public String getCorrelationId()
public JmsxProperties getJmsxProperties()
public JmsDestination getReplyTo()
public boolean isSendEncoding()
public String getEncoding()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.