Class AbstractMediator
- java.lang.Object
-
- org.wso2.carbon.mediator.service.ui.AbstractMediator
-
- All Implemented Interfaces:
Mediator
- Direct Known Subclasses:
AbstractListMediator
public abstract class AbstractMediator extends Object implements Mediator
-
-
Field Summary
Fields Modifier and Type Field Description protected static QName
ATT_EXPRN
protected static QName
ATT_KEY
protected static QName
ATT_NAME
protected static QName
ATT_ONERROR
protected static QName
ATT_REGEX
protected static QName
ATT_SEQUENCE
protected static QName
ATT_SOURCE
protected static QName
ATT_STATS
protected static QName
ATT_TARGET
protected static QName
ATT_VALUE
protected static QName
ATT_XPATH
protected static org.apache.axiom.om.OMFactory
fac
protected static QName
FEATURE_Q
protected static org.apache.axiom.om.OMNamespace
nullNS
protected static QName
PROP_Q
protected static org.apache.axiom.om.OMNamespace
synNS
protected static QName
TARGET_Q
-
Constructor Summary
Constructors Constructor Description AbstractMediator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,String>
collectNameValuePairs(org.apache.axiom.om.OMElement elem, QName childElementName)
void
disableStatistics()
Disable statistics for mediatorvoid
enableStatistics()
Enable statistics for the mediatorstatic List<MediatorProperty>
getMediatorProperties(org.apache.axiom.om.OMElement elem)
static List<MediatorProperty>
getMediatorProperties(org.apache.axiom.om.OMElement elem, boolean allowEmptyValues)
int
getTraceState()
Get the tracing stateboolean
isAuditConfigurable()
Is this mediator audit configurable.boolean
isStatisticsEnable()
Whether statistics has been enabledprotected void
processAuditStatus(Mediator mediator, org.apache.axiom.om.OMElement mediatorOmElement)
protected static void
saveTracingState(org.apache.axiom.om.OMElement mediatorOmElement, Mediator mediator)
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)
void
setAuditConfigurable(boolean auditConfigurable)
void
setTraceState(int traceState)
Set the tracing state-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wso2.carbon.mediator.service.ui.Mediator
build, getTagLocalName, serialize
-
-
-
-
Field Detail
-
fac
protected static final org.apache.axiom.om.OMFactory fac
-
synNS
protected static final org.apache.axiom.om.OMNamespace synNS
-
nullNS
protected static final org.apache.axiom.om.OMNamespace nullNS
-
ATT_NAME
protected static final QName ATT_NAME
-
ATT_VALUE
protected static final QName ATT_VALUE
-
ATT_XPATH
protected static final QName ATT_XPATH
-
ATT_REGEX
protected static final QName ATT_REGEX
-
ATT_SEQUENCE
protected static final QName ATT_SEQUENCE
-
ATT_EXPRN
protected static final QName ATT_EXPRN
-
ATT_KEY
protected static final QName ATT_KEY
-
ATT_SOURCE
protected static final QName ATT_SOURCE
-
ATT_TARGET
protected static final QName ATT_TARGET
-
ATT_ONERROR
protected static final QName ATT_ONERROR
-
ATT_STATS
protected static final QName ATT_STATS
-
PROP_Q
protected static final QName PROP_Q
-
FEATURE_Q
protected static final QName FEATURE_Q
-
TARGET_Q
protected static final QName TARGET_Q
-
-
Method Detail
-
isAuditConfigurable
public boolean isAuditConfigurable()
Description copied from interface:Mediator
Is this mediator audit configurable. Synapse mediators which implements the AuditConfigurable should return true.- Specified by:
isAuditConfigurable
in interfaceMediator
- Returns:
- true if the mediator is audit configurable.
-
saveTracingState
protected static void saveTracingState(org.apache.axiom.om.OMElement mediatorOmElement, Mediator mediator)
-
serializeMediatorProperties
protected void serializeMediatorProperties(org.apache.axiom.om.OMElement parent, Collection<MediatorProperty> props, QName childElementName)
-
getMediatorProperties
public static List<MediatorProperty> getMediatorProperties(org.apache.axiom.om.OMElement elem)
-
getMediatorProperties
public static List<MediatorProperty> getMediatorProperties(org.apache.axiom.om.OMElement elem, boolean allowEmptyValues)
-
serializeNamespaces
protected void serializeNamespaces(org.apache.axiom.om.OMElement elem, org.apache.axiom.om.xpath.AXIOMXPath xpath)
-
processAuditStatus
protected void processAuditStatus(Mediator mediator, org.apache.axiom.om.OMElement mediatorOmElement)
-
collectNameValuePairs
protected Map<String,String> collectNameValuePairs(org.apache.axiom.om.OMElement elem, QName childElementName)
-
getTraceState
public int getTraceState()
Description copied from interface:Mediator
Get the tracing state- Specified by:
getTraceState
in interfaceMediator
- Returns:
- tracing state
-
setTraceState
public void setTraceState(int traceState)
Description copied from interface:Mediator
Set the tracing state- Specified by:
setTraceState
in interfaceMediator
- Parameters:
traceState
- trace state to set
-
isStatisticsEnable
public boolean isStatisticsEnable()
Description copied from interface:Mediator
Whether statistics has been enabled- Specified by:
isStatisticsEnable
in interfaceMediator
- Returns:
- True if enable , o.w , false
-
disableStatistics
public void disableStatistics()
Description copied from interface:Mediator
Disable statistics for mediator- Specified by:
disableStatistics
in interfaceMediator
-
enableStatistics
public void enableStatistics()
Description copied from interface:Mediator
Enable statistics for the mediator- Specified by:
enableStatistics
in interfaceMediator
-
setAuditConfigurable
public void setAuditConfigurable(boolean auditConfigurable)
-
-