public static DAVProperties getResourceProperties(DAVConnection connection, String path, String label, DAVElement[] properties) throws SVNException { Map resultMap = new HashMap(); HTTPStatus status = getProperties(connection, path, DEPTH_ZERO, label, properties, resultMap); if (status.getError() != null) { SVNErrorManager.error(status.getError()); } if (label != null || true) { if (!resultMap.isEmpty()) { return (DAVProperties) resultMap.values().iterator().next(); } } else { if (resultMap.containsKey(path)) { return (DAVProperties) resultMap.get(path); } } label = label == null ? "NULL" : label; SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_DAV_REQUEST_FAILED, "Failed to find label ''{0}'' for URL ''{1}''", new Object[] {label, path}); SVNErrorManager.error(err); return null; }
public static DAVProperties getResourceProperties(DAVConnection connection, String path, String label, DAVElement[] properties) throws SVNException { Map resultMap = new SVNHashMap(); HTTPStatus status = getProperties(connection, path, DEPTH_ZERO, label, properties, resultMap); if (status.getError() != null) { SVNErrorManager.error(status.getError(), SVNLogType.NETWORK); } if (!resultMap.isEmpty()) { return (DAVProperties) resultMap.values().iterator().next(); } label = label == null ? "NULL" : label; SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_DAV_REQUEST_FAILED, "Failed to find label ''{0}'' for URL ''{1}''", new Object[] {label, path}); SVNErrorManager.error(err, SVNLogType.NETWORK); return null; }
public static DAVProperties getResourceProperties(DAVConnection connection, String path, String label, DAVElement[] properties) throws SVNException { Map resultMap = new SVNHashMap(); HTTPStatus status = getProperties(connection, path, DEPTH_ZERO, label, properties, resultMap); if (status.getError() != null) { SVNErrorManager.error(status.getError(), SVNLogType.NETWORK); } if (!resultMap.isEmpty()) { return (DAVProperties) resultMap.values().iterator().next(); } label = label == null ? "NULL" : label; SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_DAV_REQUEST_FAILED, "Failed to find label ''{0}'' for URL ''{1}''", new Object[] {label, path}); SVNErrorManager.error(err, SVNLogType.NETWORK); return null; }
public static DAVProperties getResourceProperties(DAVConnection connection, String path, String label, DAVElement[] properties) throws SVNException { Map resultMap = new SVNHashMap(); HTTPStatus status = getProperties(connection, path, DEPTH_ZERO, label, properties, resultMap); if (status.getError() != null) { SVNErrorManager.error(status.getError(), SVNLogType.NETWORK); } if (!resultMap.isEmpty()) { return (DAVProperties) resultMap.values().iterator().next(); } label = label == null ? "NULL" : label; SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_DAV_REQUEST_FAILED, "Failed to find label ''{0}'' for URL ''{1}''", new Object[] {label, path}); SVNErrorManager.error(err, SVNLogType.NETWORK); return null; }
Map propsMap = new HashMap(); path = SVNPathUtil.append(info.baselineBase, info.baselinePath); HTTPStatus status = getProperties(connection, path, 0, null, new DAVElement[] {DAVElement.RESOURCE_TYPE}, propsMap); if (status.getError() != null) { SVNErrorManager.error(status.getError());
final int parentPathSegments = SVNPathUtil.getSegmentsCount(path); Map dirEntsMap = new HashMap(); HTTPStatus status = DAVUtil.getProperties(myConnection, path, DAVUtil.DEPTH_ONE, null, null, dirEntsMap); if (status.getError() != null) { SVNErrorManager.error(status.getError());
HTTPStatus status = DAVUtil.getProperties(myConnection, path, 0, null, elements, propsMap); if (status.getError() != null) { if (status.getError().getErrorCode() == SVNErrorCode.RA_DAV_PATH_NOT_FOUND) {
HTTPStatus status = DAVUtil.getProperties(connection, path, 0, null, elements, propsMap); if (status.getError() != null) { if (status.getError().getErrorCode() == SVNErrorCode.FS_NOT_FOUND) {
HTTPStatus status = DAVUtil.getProperties(connection, path, DAVUtil.DEPTH_ONE, null, whichProps, dirEntsMap); if (status.getError() != null) { SVNErrorManager.error(status.getError(), SVNLogType.NETWORK);
HTTPStatus status = DAVUtil.getProperties(connection, path, DAVUtil.DEPTH_ONE, null, whichProps, dirEntsMap); if (status.getError() != null) { SVNErrorManager.error(status.getError(), SVNLogType.NETWORK);
HTTPStatus status = DAVUtil.getProperties(connection, path, 0, null, elements, propsMap); if (status.getError() != null) { if (status.getError().getErrorCode() == SVNErrorCode.FS_NOT_FOUND) {
HTTPStatus status = DAVUtil.getProperties(connection, path, 0, null, elements, propsMap); if (status.getError() != null) { if (status.getError().getErrorCode() == SVNErrorCode.FS_NOT_FOUND) {
DAVElement.CREATOR_DISPLAY_NAME, DAVElement.CREATION_DATE}; Map dirEntsMap = new HashMap(); HTTPStatus status = DAVUtil.getProperties(myConnection, path, DAVUtil.DEPTH_ONE, null, dirProperties, dirEntsMap); if (status.getError() != null) { SVNErrorManager.error(status.getError());
Map propsMap = new SVNHashMap(); path = SVNPathUtil.append(info.baselineBase, info.baselinePath); HTTPStatus status = getProperties(connection, path, 0, null, new DAVElement[] {DAVElement.RESOURCE_TYPE}, propsMap); if (status.getError() != null) { SVNErrorManager.error(status.getError(), SVNLogType.NETWORK);
Map propsMap = new SVNHashMap(); path = SVNPathUtil.append(info.baselineBase, info.baselinePath); HTTPStatus status = getProperties(connection, path, 0, null, new DAVElement[] {DAVElement.RESOURCE_TYPE}, propsMap); if (status.getError() != null) { SVNErrorManager.error(status.getError(), SVNLogType.NETWORK);
HTTPStatus status = DAVUtil.getProperties(connection, path, DAVUtil.DEPTH_ONE, null, whichProps, dirEntsMap); if (status.getError() != null) { SVNErrorManager.error(status.getError(), SVNLogType.NETWORK);
Map propsMap = new SVNHashMap(); path = SVNPathUtil.append(info.baselineBase, info.baselinePath); HTTPStatus status = getProperties(connection, path, 0, null, new DAVElement[] {DAVElement.RESOURCE_TYPE}, propsMap); if (status.getError() != null) { SVNErrorManager.error(status.getError(), SVNLogType.NETWORK);
DAVElement.CREATOR_DISPLAY_NAME, DAVElement.CREATION_DATE}; Map dirEntsMap = new SVNHashMap(); HTTPStatus status = DAVUtil.getProperties(connection, path, DAVUtil.DEPTH_ONE, null, dirProperties, dirEntsMap); if (status.getError() != null) { SVNErrorManager.error(status.getError(), SVNLogType.NETWORK);
DAVElement.CREATOR_DISPLAY_NAME, DAVElement.CREATION_DATE}; Map dirEntsMap = new SVNHashMap(); HTTPStatus status = DAVUtil.getProperties(connection, path, DAVUtil.DEPTH_ONE, null, dirProperties, dirEntsMap); if (status.getError() != null) { SVNErrorManager.error(status.getError(), SVNLogType.NETWORK);
DAVElement.CREATOR_DISPLAY_NAME, DAVElement.CREATION_DATE}; Map dirEntsMap = new SVNHashMap(); HTTPStatus status = DAVUtil.getProperties(connection, path, DAVUtil.DEPTH_ONE, null, dirProperties, dirEntsMap); if (status.getError() != null) { SVNErrorManager.error(status.getError(), SVNLogType.NETWORK);