Examples of SchemaProcessor


Examples of org.wso2.carbon.registry.extensions.handlers.utils.SchemaProcessor

     * @throws RegistryException if the operation failed.
     */
    protected String processSchemaUpload(RequestContext requestContext, String resourcePath,
                                         WSDLValidationInfo validationInfo)
            throws RegistryException {
        SchemaProcessor schemaProcessor =
                new SchemaProcessor(requestContext, validationInfo);

        return schemaProcessor
                .putSchemaToRegistry(requestContext, resourcePath,
                        getChrootedLocation(requestContext.getRegistryContext()), true);
    }
View Full Code Here

Examples of org.wso2.carbon.registry.extensions.handlers.utils.SchemaProcessor

     *
     * @throws RegistryException if the operation failed.
     */
    protected String processSchemaImport(RequestContext requestContext, String resourcePath,
                                       WSDLValidationInfo validationInfo) throws RegistryException {
        SchemaProcessor schemaProcessor =
                new SchemaProcessor(requestContext, validationInfo);

        return schemaProcessor
                .importSchemaToRegistry(requestContext, resourcePath,
                        getChrootedLocation(requestContext.getRegistryContext()), true);
    }
View Full Code Here

Examples of org.wso2.carbon.registry.extensions.handlers.utils.SchemaProcessor

                    validationInfo = SchemaValidator.validate(new XMLInputSource(null, uri, null));
                }
            } catch (Exception e) {
                throw new RegistryException("Exception occured while validating the schema" , e);
            }
            SchemaProcessor schemaProcessor =
                    new SchemaProcessor(requestContext, validationInfo);

            String savedName = schemaProcessor
                    .importSchemaToRegistry(requestContext, path,
                            getChrootedLocation(requestContext.getRegistryContext()), true);

            String parentPath = RegistryUtils.getParentPath(requestContext.getResourcePath().getPath());
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.