public class ValidateMediator extends AbstractListMediator implements FlowContinuableMediator
mediators, msgBuildFailureExpatternlog, trace, traceState| Constructor and Description |
|---|
ValidateMediator() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFeature(String featureName,
boolean isFeatureEnable)
add a feature which need to set for the Schema Factory
|
Object |
getFeature(String key)
Get a mediator feature.
|
List<MediatorProperty> |
getFeatures()
Features for the actual Xerces validator
|
ResourceMap |
getResourceMap()
ResourceMap for the external schema resources to be used for the validation
|
List<Value> |
getSchemaKeys()
The keys for the schema resources used for validation
|
SynapsePath |
getSource()
Get the source XPath which yields the source element for validation
|
void |
init(SynapseEnvironment synapseEnvironment)
Initialize child mediators recursively
|
boolean |
isCacheSchema()
Check whether to cahce the schemas.
|
boolean |
isContentAware() |
boolean |
mediate(MessageContext synCtx)
Invokes the mediator passing the current message for mediation.
|
boolean |
mediate(MessageContext synCtx,
ContinuationState continuationState)
Mediate the message using a ContinuationState.
|
void |
setCacheSchema(boolean cacheSchema)
Set whether schema need to cache or not.
|
void |
setComponentStatisticsId(ArtifactHolder holder) |
void |
setResourceMap(ResourceMap resourceMap)
Set the External Schema ResourceMap that will required for schema validation
|
void |
setSchemaKeys(List<Value> schemaKeys)
Set a list of local property names which refer to a list of schemas to be
used for validation
|
void |
setSource(SynapsePath source)
Set the given XPath as the source XPath
|
addAll, addChild, addChild, destroy, getChild, getList, mediate, removeChild, removeChild, setStatisticIdForMediatorsauditLog, auditWarn, configure, disableStatistics, disableTracing, divertMediationRoute, enableStatistics, enableTracing, getAspectConfiguration, getCommentsList, getDescription, getInputType, getLastSequenceFaultHandler, getLog, getMediatorName, getMediatorPosition, getOutputType, getRegisteredMediationFlowPoint, getShortDescription, getTraceState, getType, handleException, handleException, isBreakPoint, isContentAltering, isSkipEnabled, isStatisticsEnable, isTraceOn, isTraceOrDebugOn, isTracingEnabled, registerMediationFlowPoint, reportCloseStatistics, reportOpenStatistics, setBreakPoint, setCommentsList, setDescription, setEffectiveTraceState, setMediatorPosition, setShortDescription, setSkipEnabled, setTraceState, shouldCaptureTracing, shouldTrace, shouldTrace, traceOrDebug, traceOrDebugWarn, unregisterMediationFlowPointclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMediatorName, getMediatorPosition, getShortDescription, getTraceState, getType, isContentAltering, reportCloseStatistics, reportOpenStatistics, setMediatorPosition, setShortDescription, setTraceStategetDescription, setDescriptionpublic boolean mediate(MessageContext synCtx)
Mediatormediate in interface Mediatormediate in class AbstractListMediatorsynCtx - the current message for mediationpublic boolean mediate(MessageContext synCtx, ContinuationState continuationState)
FlowContinuableMediatormediate in interface FlowContinuableMediatorsynCtx - MessageContextcontinuationState - ContinuationStatepublic void init(SynapseEnvironment synapseEnvironment)
AbstractListMediatorinit in interface ManagedLifecycleinit in class AbstractListMediatorsynapseEnvironment - synapse environmentpublic Object getFeature(String key)
key - property key / feature namepublic void addFeature(String featureName, boolean isFeatureEnable) throws SAXException
featureName - The name of the featureisFeatureEnable - should this feature enable?(true|false)SAXException - on an unknown featuregetFeature(String)public void setSchemaKeys(List<Value> schemaKeys)
schemaKeys - list of local property namespublic void setSource(SynapsePath source)
source - an XPath to be set as the sourcepublic void setResourceMap(ResourceMap resourceMap)
resourceMap - the ResourceMap which contains external schema resourcespublic SynapsePath getSource()
public List<Value> getSchemaKeys()
public List<MediatorProperty> getFeatures()
public ResourceMap getResourceMap()
public void setCacheSchema(boolean cacheSchema)
cacheSchema - cache the schema or not.public boolean isCacheSchema()
public boolean isContentAware()
isContentAware in interface MediatorisContentAware in class AbstractListMediatorpublic void setComponentStatisticsId(ArtifactHolder holder)
setComponentStatisticsId in interface MediatorsetComponentStatisticsId in class AbstractMediatorCopyright © 2005–2024 Apache Software Foundation. All rights reserved.