public void close() throws SVNException { myInputStream = null; myLoggingInputStream = null; myOutputStream = null; myConnector.close(myRepository); }
public void open(SVNRepositoryImpl repository) throws SVNException { myIsReopening = true; try { myIsCredentialsReceived = false; myConnector.open(repository); myRepository = repository; try { handshake(repository); } catch (SVNException th) { myConnector.handleExceptionOnOpen(repository, th); } } finally { myIsReopening = false; } }
public boolean isConnectionStale() { return myConnector.isStale(); }
protected SVNAuthenticator(SVNConnection connection) throws SVNException { myConnection = connection; // these are logged streams. myConnectionInputStream = connection.getInputStream(); myConnectionOutputStream = connection.getOutputStream(); // plain streams. try { myPlainInputStream = connection.getConnector().getInputStream(); myPlainOutputStream = connection.getConnector().getOutputStream(); } catch (IOException e) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, e.getMessage()); SVNErrorManager.error(err, SVNLogType.NETWORK); } }
OutputStream getOutputStream() throws SVNException { if (myOutputStream == null) { try { myOutputStream = myRepository.getDebugLog().createLogStream(SVNLogType.NETWORK, myConnector.getOutputStream()); } catch (IOException e) { SVNErrorManager.error(SVNErrorMessage.create(SVNErrorCode.RA_SVN_IO_ERROR, e.getMessage()), e, SVNLogType.NETWORK); } } return myOutputStream; }
InputStream getInputStream() throws SVNException { if (myInputStream == null) { try { InputStream is = myConnector.getInputStream(); myInputStream = myRepository.getDebugLog().createLogStream(SVNLogType.NETWORK, is); myLoggingInputStream = myInputStream; } catch (IOException e) { SVNErrorManager.error(SVNErrorMessage.create(SVNErrorCode.RA_SVN_IO_ERROR, e.getMessage()), e, SVNLogType.NETWORK); } } return myInputStream; }
private void checkConnection() throws SVNException { if (!myIsReopening && !myConnector.isConnected(myRepository)) { myIsReopening = true; try { close(); open(myRepository); } finally { myIsReopening = false; } } }
public void open(SVNRepositoryImpl repository) throws SVNException { myIsReopening = true; try { myIsCredentialsReceived = false; myConnector.open(repository); myRepository = repository; handshake(repository); } finally { myIsReopening = false; } }
protected SVNAuthenticator(SVNConnection connection) throws SVNException { myConnection = connection; // these are logged streams. myConnectionInputStream = connection.getInputStream(); myConnectionOutputStream = connection.getOutputStream(); // plain streams. try { myPlainInputStream = connection.getConnector().getInputStream(); myPlainOutputStream = connection.getConnector().getOutputStream(); } catch (IOException e) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, e.getMessage()); SVNErrorManager.error(err, SVNLogType.NETWORK); } }
OutputStream getOutputStream() throws SVNException { if (myOutputStream == null) { try { myOutputStream = myRepository.getDebugLog().createLogStream(SVNLogType.NETWORK, myConnector.getOutputStream()); } catch (IOException e) { SVNErrorManager.error(SVNErrorMessage.create(SVNErrorCode.RA_SVN_IO_ERROR, e.getMessage()), e, SVNLogType.NETWORK); } } return myOutputStream; }
InputStream getInputStream() throws SVNException { if (myInputStream == null) { try { InputStream is = myConnector.getInputStream(); myInputStream = myRepository.getDebugLog().createLogStream(SVNLogType.NETWORK, is); myLoggingInputStream = myInputStream; } catch (IOException e) { SVNErrorManager.error(SVNErrorMessage.create(SVNErrorCode.RA_SVN_IO_ERROR, e.getMessage()), e, SVNLogType.NETWORK); } } return myInputStream; }
private void checkConnection() throws SVNException { if (!myIsReopening && !myConnector.isConnected(myRepository)) { myIsReopening = true; try { close(); open(myRepository); } finally { myIsReopening = false; } } }
public void open(SVNRepositoryImpl repository) throws SVNException { myIsReopening = true; try { myIsCredentialsReceived = false; myConnector.open(repository); myRepository = repository; handshake(repository); } finally { myIsReopening = false; } }
protected SVNAuthenticator(SVNConnection connection) throws SVNException { myConnection = connection; // these are logged streams. myConnectionInputStream = connection.getInputStream(); myConnectionOutputStream = connection.getOutputStream(); // plain streams. try { myPlainInputStream = connection.getConnector().getInputStream(); myPlainOutputStream = connection.getConnector().getOutputStream(); } catch (IOException e) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, e.getMessage()); SVNErrorManager.error(err, SVNLogType.NETWORK); } }
public void close() throws SVNException { if (myEncryptor != null) { myEncryptor.dispose(); myEncryptor = null; } myInputStream = null; myLoggingInputStream = null; myOutputStream = null; myConnector.close(myRepository); }
OutputStream getOutputStream() throws SVNException { if (myOutputStream == null) { try { myOutputStream = myRepository.getDebugLog().createLogStream(SVNLogType.NETWORK, myConnector.getOutputStream()); } catch (IOException e) { SVNErrorManager.error(SVNErrorMessage.create(SVNErrorCode.RA_SVN_IO_ERROR, e.getMessage()), e, SVNLogType.NETWORK); } } return myOutputStream; }
InputStream getInputStream() throws SVNException { if (myInputStream == null) { try { InputStream is = myConnector.getInputStream(); myInputStream = myRepository.getDebugLog().createLogStream(SVNLogType.NETWORK, is); myLoggingInputStream = myInputStream; } catch (IOException e) { SVNErrorManager.error(SVNErrorMessage.create(SVNErrorCode.RA_SVN_IO_ERROR, e.getMessage()), e, SVNLogType.NETWORK); } } return myInputStream; }
private void checkConnection() throws SVNException { if (!myIsReopening && !myConnector.isConnected(myRepository)) { myIsReopening = true; try { close(); open(myRepository); } finally { myIsReopening = false; } } }
public void open(SVNRepositoryImpl repository) throws SVNException { myIsReopening = true; try { myIsCredentialsReceived = false; myConnector.open(repository); myRepository = repository; handshake(repository); } finally { myIsReopening = false; } }
public boolean isConnectionStale() { return myConnector.isStale(); }