Package org.mule.jms.commons.api.message
Interface JmsMessageBuilder<D extends JmsDestination>
- All Known Subinterfaces:
JmsResponseMessageBuilder<D>
- All Known Implementing Classes:
DefaultJmsMessageBuilder,DefaultJmsResponseMessageBuilder
public interface JmsMessageBuilder<D extends JmsDestination>
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.jms.Messagebuild(JmsSupport jmsSupport, org.mule.runtime.extension.api.runtime.parameter.OutboundCorrelationStrategy outboundCorrelationStrategy, org.mule.runtime.extension.api.runtime.parameter.CorrelationInfo correlationInfo, jakarta.jms.Session session, JmsConfig<?, ?> config) Creates aMessagebased on the provided configurationsorg.mule.runtime.api.metadata.TypedValue<Object>getBody()booleanboolean
-
Method Details
-
build
jakarta.jms.Message build(JmsSupport jmsSupport, org.mule.runtime.extension.api.runtime.parameter.OutboundCorrelationStrategy outboundCorrelationStrategy, org.mule.runtime.extension.api.runtime.parameter.CorrelationInfo correlationInfo, jakarta.jms.Session session, JmsConfig<?, ?> config) throws jakarta.jms.JMSException, IOExceptionCreates aMessagebased on the provided configurations- Parameters:
jmsSupport- theJmsSupportused to create the JMSReplyToDestinationoutboundCorrelationStrategy- the correlationId handling strategycorrelationInfo- the correlation information for the current messagesession- the currentSessionconfig- the currentDefaultJmsProducerConfig- Returns:
- the
Messagecreated by the user - Throws:
jakarta.jms.JMSException- if an error occursIOException
-
getBody
org.mule.runtime.api.metadata.TypedValue<Object> getBody() -
isSendContentType
boolean isSendContentType() -
getOutboundContentType
String getOutboundContentType() -
getProperties
-
getJmsType
String getJmsType() -
getCorrelationId
String getCorrelationId() -
getJmsxProperties
JmsxProperties getJmsxProperties() -
getReplyTo
JmsDestination getReplyTo() -
isSendEncoding
boolean isSendEncoding() -
getOutboundEncoding
String getOutboundEncoding()
-