public abstract class AbstractMediatorSerializer extends Object implements MediatorSerializer
MediatorSerializer
implementationsModifier and Type | Field and Description |
---|---|
protected static QName |
DESCRIPTION_Q |
protected static org.apache.axiom.om.OMFactory |
fac |
protected static org.apache.commons.logging.Log |
log
the standard log for mediators, will assign the logger for the actual subclass
|
protected static org.apache.axiom.om.OMNamespace |
nullNS |
protected static QName |
PROP_Q |
protected static org.apache.axiom.om.OMNamespace |
synNS |
Modifier | Constructor and Description |
---|---|
protected |
AbstractMediatorSerializer()
A constructor that makes subclasses pick up the correct logger
|
Modifier and Type | Method and Description |
---|---|
protected void |
handleException(String msg) |
protected void |
handleException(String msg,
Exception e) |
protected static void |
saveTracingState(org.apache.axiom.om.OMElement mediatorOmElement,
Mediator mediator)
Perform common functions and finalize the mediator serialization.
|
org.apache.axiom.om.OMElement |
serializeMediator(org.apache.axiom.om.OMElement parent,
Mediator m)
Serializes the given mediator into XML element.
|
protected void |
serializeMediatorProperties(org.apache.axiom.om.OMElement parent,
Collection<MediatorProperty> props) |
protected void |
serializeMediatorProperties(org.apache.axiom.om.OMElement parent,
Collection<MediatorProperty> props,
QName childElementName) |
protected void |
serializeNamespaces(org.apache.axiom.om.OMElement elem,
org.apache.axiom.om.xpath.AXIOMXPath xpath) |
protected void |
serializeProperties(org.apache.axiom.om.OMElement parent,
Collection<MediatorProperty> props) |
protected abstract org.apache.axiom.om.OMElement |
serializeSpecificMediator(Mediator m)
Specific mediator factory implementations should implement this method to build the
Mediator by the given XML configuration |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMediatorClassName
protected static org.apache.commons.logging.Log log
protected static final org.apache.axiom.om.OMFactory fac
protected static final org.apache.axiom.om.OMNamespace synNS
protected static final org.apache.axiom.om.OMNamespace nullNS
protected static final QName PROP_Q
protected static final QName DESCRIPTION_Q
protected AbstractMediatorSerializer()
public final org.apache.axiom.om.OMElement serializeMediator(org.apache.axiom.om.OMElement parent, Mediator m)
serializeSpecificMediator(org.apache.synapse.Mediator)
method, which has tobe
implemented by the respective mediators
It is treating the AnonymousListMediator
as a
special case and calls it's children serialization, since there is nothing specific to be
serialized in that case
This method has been marked as final
to avoid mistakenly overwriting
this method instead of the serializeSpecificMediator(org.apache.synapse.Mediator)
by the sub classes
serializeMediator
in interface MediatorSerializer
parent
- the OMElement to which the serialization should be attachedm
- mediator to be serializedprotected abstract org.apache.axiom.om.OMElement serializeSpecificMediator(Mediator m)
Mediator
by the given XML configurationm
- mediator to be serializedprotected static void saveTracingState(org.apache.axiom.om.OMElement mediatorOmElement, Mediator mediator)
mediatorOmElement
- the OMElement being createdmediator
- the Mediator instance being serializedprotected void serializeMediatorProperties(org.apache.axiom.om.OMElement parent, Collection<MediatorProperty> props, QName childElementName)
protected void serializeMediatorProperties(org.apache.axiom.om.OMElement parent, Collection<MediatorProperty> props)
protected void serializeProperties(org.apache.axiom.om.OMElement parent, Collection<MediatorProperty> props)
protected void serializeNamespaces(org.apache.axiom.om.OMElement elem, org.apache.axiom.om.xpath.AXIOMXPath xpath)
protected void handleException(String msg)
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.