public String generateDownloadUrlWithGerritGitweb(@NotNull String gerritUrl, @NotNull String ref) throws GerritException {
    """
	Generate a download url for a Gerrit snapshot using the gerrit url of the project and the ref
	
	@param gerritUrl URL has to be the 'git clone' link (either http or git+ssh)
	@param ref The ref to generate a snapshot. It can be a sha, branch, tag. If left empty, master is used
	
	@return Download url
	@throws GerritException thrown if the Gerrit Url is not valid
    """

        return MessageFormat.format(GERRIT_DOWNLOAD_URL_TEMPLATE, getHost(gerritUrl), getProject(gerritUrl), ref);
    }
public String generateDownloadUrlWithGerritGitweb(@NotNull String gerritUrl, @NotNull String ref) throws GerritException {

        return MessageFormat.format(GERRIT_DOWNLOAD_URL_TEMPLATE, getHost(gerritUrl), getProject(gerritUrl), ref);
    }
public String generateDownloadUrlWithGerritGitweb ( @ NotNull String gerritUrl , @ NotNull String ref ) throws GerritException { return MessageFormat . format ( GERRIT_DOWNLOAD_URL_TEMPLATE , getHost ( gerritUrl ) , getProject ( gerritUrl ) , ref ) ; }
Generate a download url for a Gerrit snapshot using the gerrit url of the project and the ref

@param gerritUrl URL has to be the 'git clone' link (either http or git+ssh)
@param ref The ref to generate a snapshot. It can be a sha, branch, tag. If left empty, master is used

@return Download url
@throws GerritException thrown if the Gerrit Url is not valid
Generate a download url for a Gerrit snapshot using the gerrit url of the project and the ref