public class JmsResultFactory extends Object
Result based on a JMS Message| Constructor and Description |
|---|
JmsResultFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.extension.api.runtime.operation.Result<Object,JmsAttributes> |
createEmptyResult()
Creates an empty
Result |
org.mule.runtime.extension.api.runtime.operation.Result<Object,JmsAttributes> |
createResult(javax.jms.Message jmsMessage,
JmsSpecification specification,
String contentType,
String encoding,
Optional<String> ackId)
Creates a
Result from a JMS Message based on the current configurations |
public org.mule.runtime.extension.api.runtime.operation.Result<Object,JmsAttributes> createResult(javax.jms.Message jmsMessage, JmsSpecification specification, String contentType, String encoding, Optional<String> ackId) throws IOException, javax.jms.JMSException
Result from a JMS Message based on the current configurationsjmsMessage - the JMS Message to convertspecification - the JmsSpecification used to obtain the MessagecontentType - the contentType of the Message contentencoding - the encoding of the Message contentackId - the ID required to perform an ACK on the Session the Message belongs toResult containing the content, headers and properties of the original MessageIOExceptionjavax.jms.JMSExceptionpublic org.mule.runtime.extension.api.runtime.operation.Result<Object,JmsAttributes> createEmptyResult()
ResultResult containing the a null payload and no attributesCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.