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() |
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>Copyright © 2022. All rights reserved.