Revision de8249cf
Added by Andreas Müller over 3 years ago
cdmlib-ext/src/main/java/eu/etaxonomy/cdm/ext/ipni/IpniService.java | ||
---|---|---|
14 | 14 |
import java.io.InputStreamReader; |
15 | 15 |
import java.net.HttpURLConnection; |
16 | 16 |
import java.net.MalformedURLException; |
17 |
import java.net.URI; |
|
18 | 17 |
import java.net.URISyntaxException; |
19 | 18 |
import java.net.URL; |
20 | 19 |
import java.text.ParseException; |
... | ... | |
35 | 34 |
import eu.etaxonomy.cdm.api.application.ICdmRepository; |
36 | 35 |
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade; |
37 | 36 |
import eu.etaxonomy.cdm.common.CdmUtils; |
37 |
import eu.etaxonomy.cdm.common.URI; |
|
38 | 38 |
import eu.etaxonomy.cdm.common.UriUtils; |
39 | 39 |
import eu.etaxonomy.cdm.model.agent.Person; |
40 | 40 |
import eu.etaxonomy.cdm.model.agent.Team; |
... | ... | |
278 | 278 |
serviceUrl.getPath() |
279 | 279 |
+ "?" + request); |
280 | 280 |
|
281 |
URI newUri = newUrl.toURI();
|
|
281 |
URI newUri = URI.fromUrl(newUrl);
|
|
282 | 282 |
logger.info("Firing request for URI: " + newUri); |
283 | 283 |
HttpResponse response = UriUtils.getResponse(newUri, null); |
284 | 284 |
|
... | ... | |
323 | 323 |
serviceUrl.getPath() |
324 | 324 |
+ "?" + request); |
325 | 325 |
|
326 |
|
|
327 |
URI newUri = newUrl.toURI(); |
|
328 |
|
|
326 |
URI newUri = URI.fromUrl(newUrl); |
|
329 | 327 |
logger.info("Firing request for URI: " + newUri); |
330 | 328 |
|
331 | 329 |
HttpResponse response = UriUtils.getResponse(newUri, null); |
Also available in: Unified diff
ref #9114 add URI Wrapper and replace all java.net.URI occurrences by the wrapper in cdmlib