public void testConnection() throws SVNException { try { openConnection(); myRepositoryRoot = null; myRepositoryUUID = null; DAVConnection connection = getConnection(); connection.fetchRepositoryUUID(this); connection.fetchRepositoryRoot(this); } finally { closeConnection(); } }
private DAVConnection getConnection() throws SVNException { if (myConnection == null) { myConnection = new DAVConnection(myConnectionFactory, myOwner); myConnection.setReportResponseSpooled(myOwner.isSpoolResponse()); myConnection.open(myOwner); } return myConnection; }
public void setSpoolResponse(boolean spool) { myIsSpoolResponse = spool; DAVConnection connection = getConnection(); if (connection != null) { connection.setReportResponseSpooled(spool); } }
protected void openConnection() throws SVNException { lock(); fireConnectionOpened(); if (myConnection == null) { myConnection = createDAVConnection(myConnectionFactory, this); myConnection.setReportResponseSpooled(isSpoolResponse()); myConnection.open(this); } }
private String getReportTarget(DAVConnection connection) throws SVNException { if (isHttpV2Enabled()) { return connection.getMeResource(); } else { String bcPath = getLocation().getURIEncodedPath(); return DAVUtil.getVCCPath(connection, this, bcPath); } }
public HTTPStatus doHead(String path) throws SVNException { beforeCall(); IHTTPConnection httpConnection = getConnection(); HTTPStatus status = performHttpRequest(httpConnection, "HEAD", path, null, (StringBuffer)null, 404, 0, null, null); return status; }
public DAVConnection(IHTTPConnectionFactory connectionFactory, SVNRepository repository) { myRepository = repository; myConnectionFactory = connectionFactory; myLatestRevision = SVNRepository.INVALID_REVISION; myHttpV2Enabled = (repository instanceof DAVRepository) && ((DAVRepository) repository).isHttpV2Enabled(); }
public void testConnection() throws SVNException { try { openConnection(); if (myConnection != null) { myConnection.fetchRepositoryUUID(this); myConnection.fetchRepositoryRoot(this); } } finally { closeConnection(); } }
protected void openConnection() throws SVNException { lock(); fireConnectionOpened(); if (myConnection == null) { myConnection = createDAVConnection(myConnectionFactory, this); myConnection.setReportResponseSpooled(isSpoolResponse()); myConnection.open(this); } }
private DAVConnection getConnection() throws SVNException { if (myConnection == null) { myConnection = new DAVConnection(myConnectionFactory, myOwner); myConnection.setReportResponseSpooled(myOwner.isSpoolResponse()); myConnection.open(myOwner); } return myConnection; }
public void setSpoolResponse(boolean spool) { myIsSpoolResponse = spool; DAVConnection connection = getConnection(); if (connection != null) { connection.setReportResponseSpooled(spool); } }
public HTTPStatus doOptions(String path) throws SVNException { beforeCall(); IHTTPConnection httpConnection = getConnection(); return performHttpRequest(httpConnection, "OPTIONS", path, null, DAVOptionsHandler.OPTIONS_REQUEST, 200, 0, null, null); }
public void testConnection() throws SVNException { try { openConnection(); myRepositoryRoot = null; myRepositoryUUID = null; DAVConnection connection = getConnection(); connection.fetchRepositoryUUID(this); connection.fetchRepositoryRoot(this); } finally { closeConnection(); } }
private DAVConnection getConnection() throws SVNException { if (myConnection == null) { myConnection = new DAVConnection(myConnectionFactory, myOwner); myConnection.setReportResponseSpooled(myOwner.isSpoolResponse()); myConnection.open(myOwner); } return myConnection; }
public void setSpoolResponse(boolean spool) { myIsSpoolResponse = spool; DAVConnection connection = getConnection(); if (connection != null) { connection.setReportResponseSpooled(spool); } }
public HTTPStatus doDelete(String path) throws SVNException { beforeCall(); IHTTPConnection httpConnection = getConnection(); return performHttpRequest(httpConnection, "DELETE", path, null, (StringBuffer) null, 404, 204, null, null); }
public void testConnection() throws SVNException { try { openConnection(); myRepositoryRoot = null; myRepositoryUUID = null; DAVConnection connection = getConnection(); connection.fetchRepositoryUUID(this); connection.fetchRepositoryRoot(this); } finally { closeConnection(); } }