public DAVResponse(String description, String href, DAVResponse nextResponse, DAVPropsResult propResult, int statusCode) { myDescription = description; // encode href myHref = SVNEncodingUtil.uriEncode(href); myNextResponse = nextResponse; myStatusCode = statusCode; myPropResult = propResult; }
public String getURL() { if (url == null && parentURL != null) { return SVNPathUtil.append(parentURL, SVNEncodingUtil.uriEncode(myName)); } return url; }
public DAVResource(ISVNWorkspaceMediator mediator, DAVConnection connection, String path, long revision, boolean isCopy) { myPath = path; myMediator = mediator; String locationPath = SVNEncodingUtil.uriEncode(connection.getLocation().getPath()); myURL = SVNPathUtil.append(locationPath, path); myRevision = revision; myConnection = connection; myIsCopy = isCopy; }
public DAVResource(ISVNWorkspaceMediator mediator, DAVConnection connection, String path, long revision, boolean isCopy) { myPath = path; myMediator = mediator; String locationPath = SVNEncodingUtil.uriEncode(connection.getLocation().getPath()); myURL = SVNPathUtil.append(locationPath, path); myRevision = revision; myConnection = connection; myIsCopy = isCopy; }
public DAVResource(ISVNWorkspaceMediator mediator, DAVConnection connection, String path, long revision, boolean isCopy) { myPath = path; myMediator = mediator; String locationPath = SVNEncodingUtil.uriEncode(connection.getLocation().getPath()); myURL = SVNPathUtil.append(locationPath, path); myRevision = revision; myConnection = connection; myIsCopy = isCopy; }
public DAVResource(ISVNWorkspaceMediator mediator, DAVConnection connection, String path, long revision, boolean isCopy) { myPath = path; myMediator = mediator; String locationPath = SVNEncodingUtil.uriEncode(connection.getLocation().getPath()); myURL = SVNPathUtil.append(locationPath, path); myRevision = revision; myConnection = connection; myIsCopy = isCopy; }
private boolean isCopiedAsAChild(File path, SVNEntry entry) throws SVNException { if (!entry.isScheduledForAddition() && entry.isCopied()) { return true; } if (entry.isScheduledForDeletion() && path != null) { return getCopyFromURL(path.getParentFile(), SVNEncodingUtil.uriEncode(entry.getName())) != null; } return false; }
public SVNLock getLock(String path) throws SVNException { try { openConnection(); path = getFullPath(path); path = SVNEncodingUtil.uriEncode(path); return myConnection.doGetLock(path, this); } finally { closeConnection(); } }
public SVNLock[] getLocks(String path) throws SVNException { try { openConnection(); path = getFullPath(path); path = SVNEncodingUtil.uriEncode(path); return myConnection.doGetLocks(path); } finally { closeConnection(); } }
public SVNLock[] getLocks(String path) throws SVNException { try { openConnection(); path = doGetFullPath(path); path = SVNEncodingUtil.uriEncode(path); DAVConnection connection = getConnection(); return connection.doGetLocks(path); } finally { closeConnection(); } }
public SVNLock getLock(String path) throws SVNException { try { openConnection(); path = doGetFullPath(path); path = SVNEncodingUtil.uriEncode(path); DAVConnection connection = getConnection(); return connection.doGetLock(path, this); } finally { closeConnection(); } }
public long getLatestRevision() throws SVNException { try { openConnection(); String path = getLocation().getPath(); path = SVNEncodingUtil.uriEncode(path); DAVBaselineInfo info = DAVUtil.getBaselineInfo(myConnection, this, path, -1, false, true, null); return info.revision; } finally { closeConnection(); } }
public SVNLock[] getLocks(String path) throws SVNException { try { openConnection(); path = doGetFullPath(path); path = SVNEncodingUtil.uriEncode(path); DAVConnection connection = getConnection(); return connection.doGetLocks(path); } finally { closeConnection(); } }
public SVNLock[] getLocks(String path) throws SVNException { try { openConnection(); path = doGetFullPath(path); path = SVNEncodingUtil.uriEncode(path); DAVConnection connection = getConnection(); return connection.doGetLocks(path); } finally { closeConnection(); } }
public SVNLock getLock(String path) throws SVNException { try { openConnection(); path = doGetFullPath(path); path = SVNEncodingUtil.uriEncode(path); DAVConnection connection = getConnection(); return connection.doGetLock(path, this); } finally { closeConnection(); } }
public SVNLock getLock(String path) throws SVNException { try { openConnection(); path = doGetFullPath(path); path = SVNEncodingUtil.uriEncode(path); DAVConnection connection = getConnection(); return connection.doGetLock(path, this); } finally { closeConnection(); } }
public long getLatestRevision() throws SVNException { try { openConnection(); String path = getLocation().getPath(); path = SVNEncodingUtil.uriEncode(path); DAVConnection connection = getConnection(); DAVBaselineInfo info = DAVUtil.getBaselineInfo(connection, this, path, -1, false, true, null); return info.revision; } finally { closeConnection(); } }
public long getLatestRevision() throws SVNException { try { openConnection(); String path = getLocation().getPath(); path = SVNEncodingUtil.uriEncode(path); DAVConnection connection = getConnection(); DAVBaselineInfo info = DAVUtil.getBaselineInfo(connection, this, path, -1, false, true, null); return info.revision; } finally { closeConnection(); } }
protected void exchangeCapabilities() throws SVNException { String path = SVNEncodingUtil.uriEncode(getLocation().getPath()); IHTTPConnection httpConnection = getConnection(); HTTPStatus status = httpConnection.request("OPTIONS", path, null, (StringBuffer) null, 200, 0, null, null); if (status.getCode() == 200) { parseCapabilities(status); } else { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_DAV_OPTIONS_REQ_FAILED, "OPTIONS request (for capabilities) got HTTP response code {0}", new Integer(status.getCode())); SVNErrorManager.error(err, SVNLogType.NETWORK); } }
public String doMakeActivity() throws SVNException { String locationPath = SVNEncodingUtil.uriEncode(getLocation().getPath()); String url = getActivityCollectionURL(locationPath, false) + generateUUID(); HTTPStatus status = myHttpConnection.request("MKACTIVITY", url, null, (StringBuffer) null, 201, 404, null, null); if (status.getCode() == 404) { url = getActivityCollectionURL(locationPath, true) + generateUUID(); status = myHttpConnection.request("MKACTIVITY", url, null, (StringBuffer) null, 201, 0, null, null); } return url; }