org.mule.module.apikit.validation
Class RestXmlSchemaValidator
java.lang.Object
org.mule.module.apikit.validation.AbstractRestSchemaValidator
org.mule.module.apikit.validation.RestXmlSchemaValidator
- All Implemented Interfaces:
- RestSchemaValidator
public class RestXmlSchemaValidator
- extends AbstractRestSchemaValidator
|
Field Summary |
protected org.slf4j.Logger |
logger
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final org.slf4j.Logger logger
RestXmlSchemaValidator
public RestXmlSchemaValidator(org.mule.api.MuleContext muleContext)
validate
public void validate(String schemaPath,
org.mule.api.MuleEvent muleEvent,
org.raml.model.Raml api)
throws BadRequestException
- Throws:
BadRequestException
loadDocument
public static Document loadDocument(InputStream inputStream)
throws IOException
- Loads the document from the
content.
- Parameters:
inputStream - the content to load
- Returns:
- the
Document represents the DOM of the content
- Throws:
IOException
Copyright © 2013. All rights reserved.