public class ValidateMediator extends AbstractListMediator
mediatorslog, 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
|
SynapseXPath |
getSource()
Get the source XPath which yields the source element for validation
|
boolean |
isContentAware() |
boolean |
mediate(MessageContext synCtx)
Invokes the mediator passing the current message for mediation.
|
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(SynapseXPath source)
Set the given XPath as the source XPath
|
addAll, addChild, destroy, getChild, getList, init, removeChild, removeChildauditLog, auditWarn, configure, disableStatistics, enableStatistics, getAspectConfiguration, getDescription, getLog, getTraceState, getType, handleException, handleException, isStatisticsEnable, isTraceOn, isTraceOrDebugOn, setDescription, setEffectiveTraceState, setTraceState, shouldTrace, traceOrDebug, traceOrDebugWarnclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTraceState, getType, setTraceStategetDescription, setDescriptionpublic boolean mediate(MessageContext synCtx)
Mediatormediate in interface Mediatormediate in class AbstractListMediatorsynCtx - the current message for mediationpublic 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(SynapseXPath source)
source - an XPath to be set as the sourcepublic void setResourceMap(ResourceMap resourceMap)
resourceMap - the ResourceMap which contains external schema resourcespublic SynapseXPath getSource()
public List<Value> getSchemaKeys()
public List<MediatorProperty> getFeatures()
public ResourceMap getResourceMap()
public boolean isContentAware()
isContentAware in interface MediatorisContentAware in class AbstractListMediatorCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.