public HTTPConnection(SVNRepository repository) throws SVNException { myRepository = repository; myHost = repository.getLocation().setPath("", false); myIsSecured = "https".equalsIgnoreCase(myHost.getProtocol()); myIsKeepAlive = repository.getOptions().keepConnection(repository); }
protected void closeConnection() { if (!getOptions().keepConnection(this)) { closeSession(); } unlock(); fireConnectionClosed(); }
protected void closeConnection() { if (!getOptions().keepConnection(this)) { closeSession(); } unlock(); fireConnectionClosed(); }
protected void closeConnection() { if (!getOptions().keepConnection(this)) { closeSession(); } unlock(); fireConnectionClosed(); }
private void openConnection() throws SVNException { lock(); if (myConnection != null && getOptions().keepConnection(this)) { return; } if (myConnection == null) { myConnection = new DAVConnection(myConnectionFactory, this); } myConnection.open(this); }
private void closeConnection() { if (getOptions().keepConnection(this)) { unlock(); return; } if (myConnection != null) { myConnection.close(); myConnection = null; } unlock(); }
protected void closeConnection() { DAVConnection connection = getConnection(); if (connection != null && !ourIsKeepCredentials) { connection.clearAuthenticationCache(); } if (!getOptions().keepConnection(this)) { closeSession(); } unlock(); fireConnectionClosed(); }
protected void closeConnection() { DAVConnection connection = getConnection(); if (connection != null && !ourIsKeepCredentials) { connection.clearAuthenticationCache(); } if (!getOptions().keepConnection(this)) { closeSession(); } unlock(); fireConnectionClosed(); }
protected void closeConnection() { DAVConnection connection = getConnection(); if (connection != null && !ourIsKeepCredentials) { connection.clearAuthenticationCache(); } if (!getOptions().keepConnection(this)) { closeSession(); } unlock(); fireConnectionClosed(); }