public class RestXmlSchemaValidator extends AbstractRestSchemaValidator
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
muleContext| Constructor and Description |
|---|
RestXmlSchemaValidator(org.mule.api.MuleContext muleContext) |
| Modifier and Type | Method and Description |
|---|---|
static Document |
loadDocument(InputStream inputStream)
Loads the document from the
content. |
void |
validate(String schemaPath,
org.mule.api.MuleEvent muleEvent,
org.raml.model.Raml api) |
public RestXmlSchemaValidator(org.mule.api.MuleContext muleContext)
public void validate(String schemaPath, org.mule.api.MuleEvent muleEvent, org.raml.model.Raml api) throws BadRequestException
BadRequestExceptionpublic static Document loadDocument(InputStream inputStream) throws IOException
content.inputStream - the content to loadDocument represents the DOM of the contentIOExceptionCopyright © 2014. All rights reserved.