@Deprecated public class TestLegacyMessageUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.mule.runtime.core.api.message.ExceptionPayload |
getExceptionPayload(org.mule.runtime.api.message.Message message)
Deprecated.
If an error occurred during the processing of this message this will return a ErrorPayload that contains the root exception
and Mule error code, plus any other related info
|
static <T extends Serializable> |
getInboundProperty(org.mule.runtime.api.message.Message message,
String name)
Deprecated.
Gets an inbound property from the message.
|
static <T extends Serializable> |
getOutboundProperty(org.mule.runtime.api.message.Message message,
String name)
Deprecated.
Gets an outbound property from the message.
|
static <T extends Serializable> |
getOutboundProperty(org.mule.runtime.api.message.Message message,
String name,
T defaultValue)
Deprecated.
Gets an outbound property from the message and provides a default value if the property is not present on the message in the
scope specified.
|
static org.mule.runtime.api.metadata.DataType |
getOutboundPropertyDataType(org.mule.runtime.api.message.Message message,
String name)
Deprecated.
Gets an outbound property data type from the message.
|
public static <T extends Serializable> T getOutboundProperty(org.mule.runtime.api.message.Message message, String name)
message - message used to obtain the data from. Must be a InternalMessagename - the name or key of the property. This must be non-null.{@link - IllegalStateException} if there is any problem accessing the legacy message API using reflectionpublic static <T extends Serializable> T getOutboundProperty(org.mule.runtime.api.message.Message message, String name, T defaultValue)
T - the defaultValue type ,this is used to validate the property value typemessage - message used to obtain the data from. Must be a InternalMessagename - the name or key of the property. This must be non-null.defaultValue - the value to return if the property is not in the scope provided. Can be nullIllegalArgumentException - if the value for the property key is not assignable from the defaultValue type{@link - IllegalStateException} if there is any problem accessing the legacy message API using reflectionpublic static org.mule.runtime.api.metadata.DataType getOutboundPropertyDataType(org.mule.runtime.api.message.Message message,
String name)
message - message used to obtain the data from. Must be a InternalMessagename - the name or key of the property. This must be non-null.{@link - IllegalStateException} if there is any problem accessing the legacy message API using reflectionpublic static <T extends Serializable> T getInboundProperty(org.mule.runtime.api.message.Message message, String name)
message - message used to obtain the data from. Must be a InternalMessagename - the name or key of the property. This must be non-null.{@link - IllegalStateException} if there is any problem accessing the legacy message API using reflectionpublic static org.mule.runtime.core.api.message.ExceptionPayload getExceptionPayload(org.mule.runtime.api.message.Message message)
message - message used to obtain the data from. Must be a InternalMessage{@link - IllegalStateException} if there is any problem accessing the legacy message API using reflectionCopyright © 2003–2018 MuleSoft, Inc.. All rights reserved.