Remove usage of GerritConfig from GitWebServlet
Instead of injecting GerritConfig into GitWebServlet inject what is needed to get the SSHD listen address and the canonical git URL, since this is everything GitWebServlet needs. Removing the injection of GerritConfig allows us to remove the SSHD listen address and the canonical git URL from GerritConfig and in a later step to get rid of GerritConfig. Change-Id: I74c134edb34a26a49424c4ee1337dab642c249f3 Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
@@ -16,29 +16,8 @@ package com.google.gerrit.common.data;
|
||||
|
||||
|
||||
public class GerritConfig implements Cloneable {
|
||||
protected String gitDaemonUrl;
|
||||
protected String sshdAddress;
|
||||
protected boolean documentationAvailable;
|
||||
|
||||
public String getGitDaemonUrl() {
|
||||
return gitDaemonUrl;
|
||||
}
|
||||
|
||||
public void setGitDaemonUrl(String url) {
|
||||
if (url != null && !url.endsWith("/")) {
|
||||
url += "/";
|
||||
}
|
||||
gitDaemonUrl = url;
|
||||
}
|
||||
|
||||
public String getSshdAddress() {
|
||||
return sshdAddress;
|
||||
}
|
||||
|
||||
public void setSshdAddress(final String addr) {
|
||||
sshdAddress = addr;
|
||||
}
|
||||
|
||||
public boolean isDocumentationAvailable() {
|
||||
return documentationAvailable;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user