public class PayloadFactoryMediator extends AbstractMediator
Modifier and Type | Field and Description |
---|---|
static String |
QUOTE_STRING_IN_PAYLOAD_FACTORY_JSON |
trace, traceState
Constructor and Description |
---|
PayloadFactoryMediator() |
Modifier and Type | Method and Description |
---|---|
String |
getFormat() |
Value |
getFormatKey()
To get the key which is used to pick the format definition from the local registry
|
String |
getOutputType() |
TemplateProcessor |
getTemplateProcessor() |
String |
getTemplateType() |
String |
getType()
Returns the class name of the mediator
|
boolean |
isContentAltering()
This is used to indicate whether message payload get modified during mediation
|
boolean |
isEscapeXmlChars() |
boolean |
isFormatDynamic() |
boolean |
mediate(MessageContext synCtx)
Contains 2 paths - one when JSON Streaming is in use (mediateJsonStreamPayload) and the other for regular
builders (mediatePayload).
|
void |
setEscapeXmlChars(boolean escapeXmlChars) |
void |
setFormat(String format) |
void |
setFormatDynamic(boolean formatDynamic) |
void |
setFormatKey(Value key)
To set the local registry key in order to pick the format definition
|
void |
setTemplateProcessor(TemplateProcessor templateProcessor) |
void |
setTemplateType(String templateType) |
void |
setType(String type) |
auditLog, auditWarn, configure, disableStatistics, disableTracing, divertMediationRoute, enableStatistics, enableTracing, getAspectConfiguration, getCommentsList, getDescription, getInputType, getLastSequenceFaultHandler, getLog, getMediatorName, getMediatorPosition, getRegisteredMediationFlowPoint, getShortDescription, getTraceState, handleException, handleException, isBreakPoint, isContentAware, isSkipEnabled, isStatisticsEnable, isTraceOn, isTraceOrDebugOn, isTracingEnabled, registerMediationFlowPoint, reportCloseStatistics, reportOpenStatistics, setBreakPoint, setCommentsList, setComponentStatisticsId, setDescription, setEffectiveTraceState, setMediatorPosition, setShortDescription, setSkipEnabled, setTraceState, shouldCaptureTracing, shouldTrace, shouldTrace, traceOrDebug, traceOrDebugWarn, unregisterMediationFlowPoint
public static final String QUOTE_STRING_IN_PAYLOAD_FACTORY_JSON
public boolean mediate(MessageContext synCtx)
synCtx
- the current message for mediationpublic String getFormat()
public void setFormat(String format)
public String getType()
AbstractMediator
getType
in interface Mediator
getType
in class AbstractMediator
public void setType(String type)
public String getTemplateType()
public void setTemplateType(String templateType)
public Value getFormatKey()
public void setFormatKey(Value key)
key
- the local registry keypublic boolean isFormatDynamic()
public void setFormatDynamic(boolean formatDynamic)
public String getOutputType()
getOutputType
in class AbstractMediator
public boolean isContentAltering()
Mediator
isContentAltering
in interface Mediator
isContentAltering
in class AbstractMediator
public boolean isEscapeXmlChars()
public void setEscapeXmlChars(boolean escapeXmlChars)
public TemplateProcessor getTemplateProcessor()
public void setTemplateProcessor(TemplateProcessor templateProcessor)
Copyright © 2005–2023 Apache Software Foundation. All rights reserved.