ValidateJsonSchemaMessageProcessor
instead@Deprecated public class JsonSchemaXsdValidationFilter extends SchemaValidationFilter implements JsonSchemaFilter
Modifier and Type | Field and Description |
---|---|
protected JsonToXml |
jToX
Deprecated.
|
protected MuleContext |
muleContext
Deprecated.
|
DEFAULT_SCHEMA_LANGUAGE, logger
PHASE_NAME
Constructor and Description |
---|
JsonSchemaXsdValidationFilter()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(MuleMessage msg)
Deprecated.
Accepts the message if schema validation passes.
|
void |
initialise()
Deprecated.
Method used to perform any initialisation work.
|
void |
setMuleContext(MuleContext muleContext)
Deprecated.
|
void |
setSchemaLocations(String schemaLocations)
Deprecated.
|
createValidator, getDelayedResult, getErrorHandler, getResourceResolver, getSchemaLanguage, getSchemaLocations, getSchemaObject, getValidatorFeatures, getValidatorProperties, getXMLInputFactory, isReturnResult, isUseStaxSource, loadSchemaStream, loadSource, setErrorHandler, setResourceResolver, setReturnResult, setSchemaLanguage, setSchemaObject, setUseStaxSource, setValidatorFeatures, setValidatorProperties, setXMLInputFactory
getDocumentBuilderFactory, setDocumentBuilderFactory, toDOMNode, toDOMNode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createValidator, getErrorHandler, getResourceResolver, getSchemaLanguage, getSchemaLocations, getSchemaObject, getValidatorFeatures, getValidatorProperties, getXMLInputFactory, isReturnResult, isUseStaxSource, setErrorHandler, setResourceResolver, setReturnResult, setSchemaLanguage, setSchemaObject, setUseStaxSource, setValidatorFeatures, setValidatorProperties, setXMLInputFactory
protected MuleContext muleContext
protected JsonToXml jToX
public boolean accept(MuleMessage msg)
SchemaValidationFilter
accept
in interface Filter
accept
in class SchemaValidationFilter
msg
- The message.public void setMuleContext(MuleContext muleContext)
setMuleContext
in interface MuleContextAware
public void initialise() throws InitialisationException
Initialisable
InitialisationException
should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException
should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise
in interface Initialisable
initialise
in class SchemaValidationFilter
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered frompublic void setSchemaLocations(String schemaLocations)
setSchemaLocations
in interface JsonSchemaFilter
setSchemaLocations
in class SchemaValidationFilter
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.