public class DefaultJmsMessageBuilder<D extends DefaultJmsDestination> extends Object implements JmsMessageBuilder<D>
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 |
|---|
DefaultJmsMessageBuilder() |
| Modifier and Type | Method and Description |
|---|---|
javax.jms.Message |
build(JmsSupport jmsSupport,
org.mule.runtime.extension.api.runtime.parameter.OutboundCorrelationStrategy outboundCorrelationStrategy,
org.mule.runtime.extension.api.runtime.parameter.CorrelationInfo correlationInfo,
javax.jms.Session session,
JmsConfig config)
Creates a
Message based on the provided configurations |
org.mule.runtime.api.metadata.TypedValue<Object> |
getBody() |
String |
getCorrelationId() |
String |
getJmsType() |
JmsxProperties |
getJmsxProperties() |
String |
getOutboundContentType() |
String |
getOutboundEncoding() |
Map<String,Object> |
getProperties() |
JmsDestination |
getReplyTo() |
boolean |
isSendContentType() |
boolean |
isSendEncoding() |
void |
setBody(org.mule.runtime.api.metadata.TypedValue<Object> body) |
void |
setCorrelationId(String correlationId) |
void |
setJmsType(String jmsType) |
void |
setJmsxProperties(JmsxProperties jmsxProperties) |
void |
setOutboundContentType(String outboundContentType) |
void |
setOutboundEncoding(String outboundEncoding) |
void |
setProperties(Map<String,Object> properties) |
void |
setReplyTo(D replyTo) |
void |
setSendContentType(boolean sendContentType) |
void |
setSendEncoding(boolean sendEncoding) |
public static final String BODY_CONTENT_TYPE_JMS_PROPERTY
public static final String BODY_ENCODING_JMS_PROPERTY
public javax.jms.Message build(JmsSupport jmsSupport, org.mule.runtime.extension.api.runtime.parameter.OutboundCorrelationStrategy outboundCorrelationStrategy, org.mule.runtime.extension.api.runtime.parameter.CorrelationInfo correlationInfo, javax.jms.Session session, JmsConfig config) throws javax.jms.JMSException
Message based on the provided configurationsbuild in interface JmsMessageBuilder<D extends DefaultJmsDestination>jmsSupport - the JmsSupport used to create the JMSReplyTo DestinationoutboundCorrelationStrategy - the correlationId handling strategycorrelationInfo - the correlation information for the current messagesession - the current Sessionconfig - the current DefaultJmsProducerConfigMessage created by the userjavax.jms.JMSException - if an error occurspublic org.mule.runtime.api.metadata.TypedValue<Object> getBody()
getBody in interface JmsMessageBuilder<D extends DefaultJmsDestination>public boolean isSendContentType()
isSendContentType in interface JmsMessageBuilder<D extends DefaultJmsDestination>public String getOutboundContentType()
getOutboundContentType in interface JmsMessageBuilder<D extends DefaultJmsDestination>public Map<String,Object> getProperties()
getProperties in interface JmsMessageBuilder<D extends DefaultJmsDestination>public String getJmsType()
getJmsType in interface JmsMessageBuilder<D extends DefaultJmsDestination>public String getCorrelationId()
getCorrelationId in interface JmsMessageBuilder<D extends DefaultJmsDestination>public JmsxProperties getJmsxProperties()
getJmsxProperties in interface JmsMessageBuilder<D extends DefaultJmsDestination>public JmsDestination getReplyTo()
getReplyTo in interface JmsMessageBuilder<D extends DefaultJmsDestination>public boolean isSendEncoding()
isSendEncoding in interface JmsMessageBuilder<D extends DefaultJmsDestination>public String getOutboundEncoding()
getOutboundEncoding in interface JmsMessageBuilder<D extends DefaultJmsDestination>public void setJmsxProperties(JmsxProperties jmsxProperties)
public void setReplyTo(D replyTo)
public void setOutboundEncoding(String outboundEncoding)
public void setSendEncoding(boolean sendEncoding)
public void setOutboundContentType(String outboundContentType)
public void setSendContentType(boolean sendContentType)
public void setCorrelationId(String correlationId)
public void setJmsType(String jmsType)
public void setBody(org.mule.runtime.api.metadata.TypedValue<Object> body)
Copyright © 2025. All rights reserved.