org.mule.module.apikit.validation
Class RestXmlSchemaValidator

java.lang.Object
  extended by org.mule.module.apikit.validation.AbstractRestSchemaValidator
      extended by org.mule.module.apikit.validation.RestXmlSchemaValidator
All Implemented Interfaces:
RestSchemaValidator

public class RestXmlSchemaValidator
extends AbstractRestSchemaValidator


Field Summary
protected  org.slf4j.Logger logger
           
 
Fields inherited from class org.mule.module.apikit.validation.AbstractRestSchemaValidator
muleContext
 
Constructor Summary
RestXmlSchemaValidator(org.mule.api.MuleContext muleContext)
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.slf4j.Logger logger
Constructor Detail

RestXmlSchemaValidator

public RestXmlSchemaValidator(org.mule.api.MuleContext muleContext)
Method Detail

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.