Package org.modeshape.jdbc.rest

Examples of org.modeshape.jdbc.rest.Repositories$Repository


        serverUrl = serverUrl + "/" + workspaceName;
        logger.debug("Using server url: {0}", serverUrl);
        // this is only a connection test to confirm a connection can be made and results can be obtained.
        try {
            this.restClient = new ModeShapeRestClient(serverUrl, username, String.valueOf(password));
            Repositories repositories = this.restClient.getRepositories();
            this.setRepositoryNames(repositories.getRepositoryNames());
            Repositories.Repository repository = repositories.getRepository(repositoryName);
            if (repository == null) {
                throw new SQLException(JdbcLocalI18n.unableToFindNamedRepository.text(path, repositoryName));
            }
            this.repository.compareAndSet(null, repository);
        } catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.modeshape.jdbc.rest.Repositories$Repository

Copyright © 2018 www.massapicom. 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.