public class PayloadFactoryMediator extends AbstractMediator
printf()style formatting is used to configure the transformation performed by the mediator. Each argument in the mediator configuration could be a static value or an XPath expression. When an expression is used, argument value is fetched at runtime by evaluating the provided XPath expression against the existing SOAP message/message context.
Modifier and Type | Class and Description |
---|---|
static class |
PayloadFactoryMediator.Argument
Represents an argument provided in the payload factory mediator configuration.
|
log, trace, traceState
Constructor and Description |
---|
PayloadFactoryMediator() |
Modifier and Type | Method and Description |
---|---|
void |
addArgument(PayloadFactoryMediator.Argument arg) |
List<PayloadFactoryMediator.Argument> |
getArgumentList() |
String |
getFormat() |
boolean |
mediate(MessageContext synCtx)
Replaces the existing payload with a new payload as defined by the format and the argument list
|
void |
setFormat(String format) |
auditLog, auditWarn, configure, disableStatistics, enableStatistics, getAspectConfiguration, getDescription, getLog, getTraceState, getType, handleException, handleException, isContentAware, isStatisticsEnable, isTraceOn, isTraceOrDebugOn, setDescription, setEffectiveTraceState, setTraceState, shouldTrace, traceOrDebug, traceOrDebugWarn
public boolean mediate(MessageContext synCtx)
synCtx
- the current message for mediationpublic String getFormat()
public void setFormat(String format)
public void addArgument(PayloadFactoryMediator.Argument arg)
public List<PayloadFactoryMediator.Argument> getArgumentList()
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.