public abstract class AbstractMediatorFactory extends java.lang.Object implements MediatorFactory
MediatorFactory
implementationsModifier and Type | Field and Description |
---|---|
protected static javax.xml.namespace.QName |
ATT_DEFAULT_VALUE |
protected static javax.xml.namespace.QName |
ATT_DESCRIPTION |
protected static javax.xml.namespace.QName |
ATT_EVAL |
protected static javax.xml.namespace.QName |
ATT_EXPRN |
protected static javax.xml.namespace.QName |
ATT_IS_MANDATORY |
protected static javax.xml.namespace.QName |
ATT_KEY |
protected static javax.xml.namespace.QName |
ATT_NAME |
protected static javax.xml.namespace.QName |
ATT_ONERROR |
protected static javax.xml.namespace.QName |
ATT_REGEX |
protected static javax.xml.namespace.QName |
ATT_SEQUENCE |
protected static javax.xml.namespace.QName |
ATT_SOURCE |
protected static javax.xml.namespace.QName |
ATT_STATS |
protected static javax.xml.namespace.QName |
ATT_TARGET |
protected static javax.xml.namespace.QName |
ATT_VALUE |
protected static javax.xml.namespace.QName |
ATT_XPATH |
protected static javax.xml.namespace.QName |
DESCRIPTION_Q |
protected static javax.xml.namespace.QName |
FEATURE_Q |
protected static javax.xml.namespace.QName |
PROP_Q |
protected static javax.xml.namespace.QName |
PROPERTY_GROUP_Q |
protected static javax.xml.namespace.QName |
TARGET_Q |
Modifier | Constructor and Description |
---|---|
protected |
AbstractMediatorFactory()
A constructor that makes subclasses pick up the correct logger
|
Modifier and Type | Method and Description |
---|---|
protected static void |
addAllCommentChildrenToList(org.apache.axiom.om.OMElement el,
java.util.List<java.lang.String> commentList)
Find and add all comment nodes to the mediator as a list
|
protected java.util.Map<java.lang.String,java.lang.String> |
collectNameValuePairs(org.apache.axiom.om.OMElement elem,
javax.xml.namespace.QName childElementName)
Collect the name and value attributes from the children
with a given QName.
|
Mediator |
createMediator(org.apache.axiom.om.OMElement elem,
java.util.Properties properties)
Creates the mediator by looking at the given XML element.
|
protected abstract Mediator |
createSpecificMediator(org.apache.axiom.om.OMElement elem,
java.util.Properties properties)
Specific mediator factory implementations should implement this method to build the
Mediator by the given XML configuration |
protected void |
handleException(java.lang.String message) |
protected void |
handleException(java.lang.String message,
java.lang.Exception e) |
protected void |
processAuditStatus(Mediator mediator,
org.apache.axiom.om.OMElement mediatorOmElement)
This is to Initialize the mediator regarding tracing and statistics.
|
protected void |
processTraceState(Mediator mediator,
org.apache.axiom.om.OMElement mediatorOmElement)
Deprecated.
This method is deprecated. As of Synapse 1.3, please use
processAuditStatus(Mediator, OMElement) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTagQName
protected static final javax.xml.namespace.QName ATT_NAME
protected static final javax.xml.namespace.QName ATT_VALUE
protected static final javax.xml.namespace.QName ATT_DESCRIPTION
protected static final javax.xml.namespace.QName ATT_IS_MANDATORY
protected static final javax.xml.namespace.QName ATT_DEFAULT_VALUE
protected static final javax.xml.namespace.QName ATT_XPATH
protected static final javax.xml.namespace.QName ATT_REGEX
protected static final javax.xml.namespace.QName ATT_SEQUENCE
protected static final javax.xml.namespace.QName ATT_EXPRN
protected static final javax.xml.namespace.QName ATT_KEY
protected static final javax.xml.namespace.QName ATT_SOURCE
protected static final javax.xml.namespace.QName ATT_TARGET
protected static final javax.xml.namespace.QName ATT_ONERROR
protected static final javax.xml.namespace.QName ATT_EVAL
protected static final javax.xml.namespace.QName ATT_STATS
protected static final javax.xml.namespace.QName PROP_Q
protected static final javax.xml.namespace.QName PROPERTY_GROUP_Q
protected static final javax.xml.namespace.QName FEATURE_Q
protected static final javax.xml.namespace.QName TARGET_Q
protected static final javax.xml.namespace.QName DESCRIPTION_Q
protected AbstractMediatorFactory()
public final Mediator createMediator(org.apache.axiom.om.OMElement elem, java.util.Properties properties)
createSpecificMediator(org.apache.axiom.om.OMElement,
java.util.Properties)
method, which has tobe implemented by the respective mediators
This method has been marked as final
to avoid mistakenly overwriting
this method instead of the createSpecificMediator(org.apache.axiom.om.OMElement,
java.util.Properties)
by the sub classes
createMediator
in interface MediatorFactory
elem
- configuration element of the mediator to be builtproperties
- bag of properties to pass in any information to the factoryprotected abstract Mediator createSpecificMediator(org.apache.axiom.om.OMElement elem, java.util.Properties properties)
Mediator
by the given XML configurationelem
- configuration element describing the properties of the mediatorproperties
- bag of properties to pass in any information to the factory@Deprecated protected void processTraceState(Mediator mediator, org.apache.axiom.om.OMElement mediatorOmElement)
processAuditStatus(Mediator, OMElement)
mediator
- of which trace state has to be setmediatorOmElement
- from which the trace state is extractedprotected void processAuditStatus(Mediator mediator, org.apache.axiom.om.OMElement mediatorOmElement)
mediator
- of which trace state has to be setmediatorOmElement
- from which the trace state is extractedprotected java.util.Map<java.lang.String,java.lang.String> collectNameValuePairs(org.apache.axiom.om.OMElement elem, javax.xml.namespace.QName childElementName)
elem
- element to be traversed to find the specified childElementName
childElementName
- t be used to extract elements to collect the name value pairsprotected void handleException(java.lang.String message, java.lang.Exception e)
protected void handleException(java.lang.String message)
protected static void addAllCommentChildrenToList(org.apache.axiom.om.OMElement el, java.util.List<java.lang.String> commentList)
el
- OMElement to extract OMComment NodescommentList
- ArrayList to be updated with extracted Comment StringsCopyright © 2005-2022 Apache Software Foundation. All Rights Reserved.