Examples of testConnection()


Examples of org.tmatesoft.svn.core.io.SVNRepository.testConnection()

             * Sets the manager of the user's authentication information that
             * will be used to authenticate the user to the server (if needed)
             * during operations handled by the SVNRepository.
             */
            repository.setAuthenticationManager( authManager );
            repository.testConnection();
        } catch ( SVNException e ) {
            logger.error( e.getErrorMessage() );
            return false;
        }

View Full Code Here

Examples of org.tmatesoft.svn.core.io.SVNRepository.testConnection()

             * Sets the manager of the user's authentication information that
             * will be used to authenticate the user to the server (if needed)
             * during operations handled by the SVNRepository.
             */
            repository.setAuthenticationManager( authManager );
            repository.testConnection();
        } catch ( SVNException e ) {
            logger.error( e.getErrorMessage().getFullMessage() );
            return false;
        }

View Full Code Here

Examples of org.tmatesoft.svn.core.io.SVNRepository.testConnection()

                public void acknowledgeAuthentication(boolean accepted, String kind, String realm, SVNErrorMessage errorMessage, SVNAuthentication authentication) throws SVNException {
                  realms[0] = realm;
                  super.acknowledgeAuthentication(accepted, kind, realm, errorMessage, authentication);
                }
            });
            repository.testConnection();
           
    } catch (SVNException e) {
      // If a problem happens, don't do anything, it implies realm doesn't exist in current cache
    }
View Full Code Here

Examples of org.tmatesoft.svn.core.io.SVNRepository.testConnection()

    }

    private void attemptAccess(ISVNAuthenticationManager m) throws SVNException {
        SVNRepository repository = SVNRepositoryFactory.create(repo);
        repository.setAuthenticationManager(m);
        repository.testConnection();
    }

    private ISVNAuthenticationManager createInMemoryManager() {
        ISVNAuthenticationManager m = new SVNAuthenticationManager(hudson.root,null,null);
        m.setAuthenticationProvider(descriptor.createAuthenticationProvider(null));
View Full Code Here

Examples of org.tmatesoft.svn.core.io.SVNRepository.testConnection()

                LOGGER.fine("UUID of " + remote + " not cached for " + context);
                synchronized (this) {
                    // don't keep connections open for further use to prevent having too many open at the same time.
                    SVNRepository r = openRepository(context, scm, false);
                    if (r.getRepositoryUUID(false) == null)
                        r.testConnection(); // make sure values are fetched
                    repositoryUUID = UUID.fromString(r.getRepositoryUUID(false));
                    repositoryRoot = r.getRepositoryRoot(false);
                }
            }
            return repositoryUUID;
View Full Code Here

Examples of org.tmatesoft.svn.core.io.SVNRepository.testConnection()

                    }
                };
                authManager.setAuthenticationForced(true);
                repository.setAuthenticationManager(authManager);
                repository.testConnection();
                authManager.checkIfProtocolCompleted();
            } finally {
                if (repository != null)
                    repository.closeSession();
            }
View Full Code Here

Examples of org.tmatesoft.svn.core.io.SVNRepository.testConnection()

        public SVNNodeKind checkRepositoryPath(Item context, SVNURL repoURL, StandardCredentials credentials) throws SVNException {
            SVNRepository repository = null;

            try {
                repository = getRepository(context,repoURL,credentials, Collections.<String, Credentials>emptyMap(), null);
                repository.testConnection();

                long rev = repository.getLatestRevision();
                String repoPath = getRelativePath(repoURL, repository);
                return repository.checkPath(repoPath, rev);
            } catch (SVNException e) {
View Full Code Here

Examples of org.tmatesoft.svn.core.io.SVNRepository.testConnection()

        public SVNNodeKind checkRepositoryPath(SCMSourceOwner context, SVNURL repoURL, StandardCredentials credentials) throws SVNException {
            SVNRepository repository = null;

            try {
                repository = getRepository(context,repoURL,credentials, Collections.<String, Credentials>emptyMap(), null);
                repository.testConnection();

                long rev = repository.getLatestRevision();
                String repoPath = getRelativePath(repoURL, repository);
                return repository.checkPath(repoPath, rev);
            } catch (SVNException e) {
View Full Code Here

Examples of org.trzcinka.intellitrac.gateway.TracGateway.testConnection()

        try {
          ConnectionSettings settings = new ConnectionSettings();
          settings.setLogin(login.getText());
          settings.setPassword(password.getText());
          settings.setTracUrl(tracUrl.getText());
          gateway.testConnection(settings);
          Messages.showMessageDialog(bundle.getString("configuration.connection.dialogs.connection_success"), bundle.getString("dialogs.success"), Messages.getInformationIcon());
        } catch (ConnectionFailedException exception) {
          Messages.showMessageDialog(bundle.getString("configuration.connection.dialogs.connection_failed"), bundle.getString("dialogs.error"), Messages.getErrorIcon());
        } catch (MalformedURLException e1) {
          Messages.showMessageDialog(bundle.getString("configuration.connection.dialogs.malformed_url"), bundle.getString("dialogs.error"), Messages.getErrorIcon());
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.