Revision e69e90b6
Added by Patrick Plitzner about 5 years ago
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/remoting/source/CdmServerInfo.java | ||
---|---|---|
148 | 148 |
} |
149 | 149 |
|
150 | 150 |
public void updateInfo() throws CDMServerException { |
151 |
String url ; |
|
152 |
if (this.isLocalhost()){ |
|
153 |
url = "http://localhost:58080/cdmserver/" + "info.jsp"; |
|
154 |
}else{ |
|
155 |
url = "http://" + server + ":" + String.valueOf(port) + "/" + prefix + "info.jsp"; |
|
156 |
} |
|
151 |
String url = "http://" + server + ":" + String.valueOf(port) + "/" + prefix + "info.jsp"; |
|
157 | 152 |
String responseBody = getResponse(url); |
158 | 153 |
if(responseBody != null) { |
159 | 154 |
try { |
... | ... | |
168 | 163 |
|
169 | 164 |
public void addInstancesViaHttp() throws CDMServerException { |
170 | 165 |
updateInfo(); |
171 |
String url; |
|
172 |
if (this.isLocalhost()){ |
|
173 |
url = "http://localhost:58080" + "instances.jsp"; |
|
174 |
}else{ |
|
175 |
url = "http://" + server + ":" + String.valueOf(port) + "/" + prefix + "instances.jsp"; |
|
176 |
} |
|
166 |
String url = "http://" + server + ":" + String.valueOf(port) + "/" + prefix + "instances.jsp"; |
|
177 | 167 |
String responseBody = getResponse(url); |
178 | 168 |
if(responseBody != null) { |
179 | 169 |
try { |
Also available in: Unified diff
Remove hard coded port for localhost in login dialog