Class JSONTransformMediator
- java.lang.Object
-
- org.apache.synapse.mediators.AbstractMediator
-
- org.apache.synapse.mediators.builtin.JSONTransformMediator
-
- All Implemented Interfaces:
AspectConfigurable
,Mediator
,SynapseArtifact
public class JSONTransformMediator extends AbstractMediator
A mediator to transform XML payload to JSON or JSON to JSON based on a json schema Via this mediator we can override the global properties which are used in XML to JSON transformations. These properties can be used individually for each artifact.
-
-
Field Summary
-
Fields inherited from class org.apache.synapse.mediators.AbstractMediator
log, trace, traceState
-
-
Constructor Summary
Constructors Constructor Description JSONTransformMediator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAllProperties(List<MediatorProperty> list)
List<MediatorProperty>
getProperties()
Value
getSchemaKey()
boolean
mediate(MessageContext synCtx)
Invokes the mediator passing the current message for mediation.void
setSchemaKey(Value schemaKey)
-
Methods inherited from class org.apache.synapse.mediators.AbstractMediator
auditLog, auditWarn, configure, disableStatistics, disableTracing, divertMediationRoute, enableStatistics, enableTracing, getAspectConfiguration, getCommentsList, getDescription, getInputType, getLastSequenceFaultHandler, getLog, getMediatorName, getMediatorPosition, getOutputType, getRegisteredMediationFlowPoint, getShortDescription, getTraceState, getType, handleException, handleException, isBreakPoint, isContentAltering, isContentAware, isSkipEnabled, isStatisticsEnable, isTraceOn, isTraceOrDebugOn, isTracingEnabled, registerMediationFlowPoint, reportCloseStatistics, reportOpenStatistics, setBreakPoint, setCommentsList, setComponentStatisticsId, setDescription, setEffectiveTraceState, setMediatorPosition, setShortDescription, setSkipEnabled, setTraceState, shouldCaptureTracing, shouldTrace, shouldTrace, traceOrDebug, traceOrDebugWarn, unregisterMediationFlowPoint
-
-
-
-
Method Detail
-
mediate
public boolean mediate(MessageContext synCtx)
Description copied from interface:Mediator
Invokes the mediator passing the current message for mediation. Each mediator performs its mediation action, and returns true if mediation should continue, or false if further mediation should be aborted.- Parameters:
synCtx
- the current message for mediation- Returns:
- true if further mediation should continue
-
getSchemaKey
public Value getSchemaKey()
-
setSchemaKey
public void setSchemaKey(Value schemaKey)
-
addAllProperties
public void addAllProperties(List<MediatorProperty> list)
-
getProperties
public List<MediatorProperty> getProperties()
-
-