Examples of SchemaValidator


Examples of org.wso2.carbon.registry.core.utils.SchemaValidator

        if (!CommonUtil.isUpdateLockAvailable()) {
            return;
        }
        CommonUtil.acquireUpdateLock();
        try {
            SchemaValidator validator = new SchemaValidator();
            Resource resource = requestContext.getResource();
            Object resourceContent = resource.getContent();
            if (resourceContent instanceof byte[]) {
                InputStream in = new ByteArrayInputStream((byte[]) resourceContent);
                validator.validate(in, resource);
            }
            resource.setContentStream(null);
            // requestContext.getRegistry().put(resource.getPath() ,resource);
        } finally {
            CommonUtil.releaseUpdateLock();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.