public final class TransformSequence extends Object implements Serializable
TransformSequence.from("a").to("b").to("c').associateWith(messageContext);
| Modifier and Type | Method and Description |
|---|---|
void |
apply(Message message,
TransformerRegistry registry)
Apply this
TransformSequence to the supplied Message instance. |
static void |
applySequence(Exchange exchange,
TransformerRegistry registry)
Apply the active exchange transformation sequence to the supplied
Exchange Message.
|
static boolean |
assertTransformsApplied(Exchange exchange)
Utility assertion method for checking if the source to destination transformations
have been applied to the Exchange.
|
void |
associateWith(Message message)
Associate this instance with the supplied message context.
|
static TransformSequence |
from(QName typeName)
Start the transformation sequence.
|
static QName |
getCurrentMessageType(Exchange exchange)
Get the current message type for the specified exchange.
|
static QName |
getTargetMessageType(Exchange exchange)
Get the target message type for the specified exchange phase.
|
TransformSequence |
to(QName typeName)
Add to the transformation sequence.
|
public void associateWith(Message message)
message - associate the transform to this messagepublic static TransformSequence from(QName typeName)
typeName - The from type.public TransformSequence to(QName typeName)
typeName - The from type.public void apply(Message message, TransformerRegistry registry) throws TransformationFailureException
TransformSequence to the supplied Message instance.message - Message instance.registry - Transformation Registry.TransformationFailureException - transformation failure exceptionpublic static QName getCurrentMessageType(Exchange exchange)
exchange - The exchange.public static QName getTargetMessageType(Exchange exchange)
exchange - The exchange.public static boolean assertTransformsApplied(Exchange exchange)
exchange - The exchange instance.public static void applySequence(Exchange exchange, TransformerRegistry registry) throws TransformationFailureException
exchange - The Exchange instance.registry - The transformation registry.TransformationFailureException - transformation failure exceptionCopyright © 2013–2018 JBoss by Red Hat. All rights reserved.