mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-21 21:25:38 +00:00
use UrlConnectionHelper in XRR structure importer
Change-Id: I484dfd088998fe1193ef7b79d08dcb61a57a5fb0
This commit is contained in:
@@ -16,7 +16,8 @@ Require-Bundle: com.google.gwt.user;bundle-version="2.8.2";resolution:=optional,
|
||||
com.sap.sailing.xrr.schema;bundle-version="1.0.0",
|
||||
com.sap.sailing.xrr.resultimport;bundle-version="1.0.0",
|
||||
com.sap.sse.common;bundle-version="1.0.0",
|
||||
com.sap.sailing.resultimport;bundle-version="1.0.0"
|
||||
com.sap.sailing.resultimport;bundle-version="1.0.0",
|
||||
com.sap.sse
|
||||
Import-Package: com.sap.sailing.server.operationaltransformation,
|
||||
com.sap.sailing.xrr.schema,
|
||||
org.json.simple,
|
||||
|
||||
+2
-1
@@ -1,5 +1,6 @@
|
||||
package com.sapsailing.xrr.structureimport.eventimport;
|
||||
|
||||
import com.sap.sse.util.HttpUrlConnectionHelper;
|
||||
import java.io.IOException;
|
||||
|
||||
import java.io.InputStream;
|
||||
@@ -66,7 +67,7 @@ public class EventParser {
|
||||
|
||||
URLConnection connection = null;
|
||||
try {
|
||||
connection = new URL(url).openConnection();
|
||||
connection = HttpUrlConnectionHelper.redirectConnection(new URL(url));
|
||||
is = connection.getInputStream();
|
||||
} catch (MalformedURLException e) {
|
||||
e.printStackTrace();
|
||||
|
||||
Reference in New Issue
Block a user