Revision 45f49bea
Added by Patrick Plitzner over 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/webimport/termimport/requests/AbstractTerminologyServiceRequest.java | ||
---|---|---|
24 | 24 |
*/ |
25 | 25 |
public abstract class AbstractTerminologyServiceRequest { |
26 | 26 |
|
27 |
@SuppressWarnings("unused") |
|
28 |
private static final String TERM_SERVICE_DEV = "dev-gfbio.bgbm.org"; |
|
29 |
private static final String TERM_SERVICE = "terminologies.gfbio.org"; |
|
27 | 30 |
private static final int TIMEOUT = 10000; |
28 | 31 |
|
29 | 32 |
public String request() { |
... | ... | |
40 | 43 |
serviceParameters.forEach(param->params.append(param.key+"="+param.value+"&")); |
41 | 44 |
queryString += params.toString(); |
42 | 45 |
} |
43 |
URI uri = new URI("https", "dev-gfbio.bgbm.org", pathString, queryString, null);
|
|
46 |
URI uri = new URI("https", TERM_SERVICE, pathString, queryString, null);
|
|
44 | 47 |
URL url = uri.toURL(); |
45 | 48 |
HttpURLConnection conn = (HttpURLConnection) url.openConnection(); |
46 | 49 |
conn.setRequestProperty("Accept", "application/json"); |
Also available in: Unified diff
Switch gfbio term service to production server