public class SchemaValidationFilter extends AbstractJaxpFilter implements Filter, Initialisable
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SCHEMA_LANGUAGE |
protected Log |
logger |
PHASE_NAME
Constructor and Description |
---|
SchemaValidationFilter() |
getDocumentBuilderFactory, setDocumentBuilderFactory, toDOMNode, toDOMNode
public static final String DEFAULT_SCHEMA_LANGUAGE
protected transient Log logger
public boolean accept(MuleMessage message)
protected Object getDelayedResult(Source source)
source
- The source.protected Source loadSource(MuleMessage msg) throws Exception
msg
- Encompassing messageException
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 AbstractJaxpFilter
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered fromprotected InputStream loadSchemaStream(String schemaLocation) throws IOException
IOException
public Validator createValidator() throws SAXException
SAXException
public String getSchemaLocations()
public void setSchemaLocations(String schemaLocations)
public String getSchemaLanguage()
public void setSchemaLanguage(String schemaLanguage)
public Schema getSchemaObject()
public void setSchemaObject(Schema schemaObject)
public ErrorHandler getErrorHandler()
public void setErrorHandler(ErrorHandler errorHandler)
public LSResourceResolver getResourceResolver()
public void setResourceResolver(LSResourceResolver resourceResolver)
public XMLInputFactory getXMLInputFactory()
public void setXMLInputFactory(XMLInputFactory xmlInputFactory)
public boolean isUseStaxSource()
public void setUseStaxSource(boolean useStaxSource)
public boolean isReturnResult()
public void setReturnResult(boolean returnResult)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.