Package org.apache.synapse.config.xml
Class FilterMediatorSerializer
- java.lang.Object
-
- org.apache.synapse.config.xml.AbstractMediatorSerializer
-
- org.apache.synapse.config.xml.AbstractListMediatorSerializer
-
- org.apache.synapse.config.xml.FilterMediatorSerializer
-
- All Implemented Interfaces:
MediatorSerializer
public class FilterMediatorSerializer extends AbstractListMediatorSerializer
<filter (source="xpath" regex="string") | xpath="xpath"> mediator+ </filter>
or if the filter medaitor needs to support the else behavior as well (i.e. a set of mediators to be executed when the filter evaluates to false).
<filter (source="xpath" regex="string") | xpath="xpath"> <then [sequence="string"]> mediator+ </then> <else [sequence="string"]> mediator+ </else> </filter>
-
-
Field Summary
-
Fields inherited from class org.apache.synapse.config.xml.AbstractMediatorSerializer
DESCRIPTION_Q, fac, log, nullNS, PROP_Q, synNS
-
-
Constructor Summary
Constructors Constructor Description FilterMediatorSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMediatorClassName()Return the class name of the mediator which can be serializedorg.apache.axiom.om.OMElementserializeSpecificMediator(Mediator m)Specific mediator factory implementations should implement this method to build theMediatorby the given XML configuration-
Methods inherited from class org.apache.synapse.config.xml.AbstractListMediatorSerializer
serializeChildren
-
Methods inherited from class org.apache.synapse.config.xml.AbstractMediatorSerializer
handleException, handleException, saveTracingState, serializeComments, serializeComments, serializeMediator, serializeMediatorProperties, serializeMediatorProperties, serializeNamespaces, serializeProperties
-
-
-
-
Method Detail
-
serializeSpecificMediator
public org.apache.axiom.om.OMElement serializeSpecificMediator(Mediator m)
Description copied from class:AbstractMediatorSerializerSpecific mediator factory implementations should implement this method to build theMediatorby the given XML configuration- Specified by:
serializeSpecificMediatorin classAbstractMediatorSerializer- Parameters:
m- mediator to be serialized- Returns:
- serialized element of the mediator
-
getMediatorClassName
public String getMediatorClassName()
Description copied from interface:MediatorSerializerReturn the class name of the mediator which can be serialized- Returns:
- the class name
-
-