mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-23 14:08:40 +00:00
Implemented getting server via bearertoken
This commit is contained in:
@@ -394,4 +394,6 @@ public interface LandscapeService {
|
||||
|
||||
SailingServer getSailServer(String url, String username, String password) throws MalformedURLException;
|
||||
|
||||
SailingServer getSailServer(String url, String bearertoken) throws MalformedURLException;
|
||||
|
||||
}
|
||||
|
||||
+6
@@ -1520,5 +1520,11 @@ public class LandscapeServiceImpl implements LandscapeService {
|
||||
e.printStackTrace();
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public SailingServer getSailServer(String url, String bearertoken) throws MalformedURLException {
|
||||
final SailingServerFactory fac = sailingServerFactoryTracker.getService();
|
||||
return fac.getSailingServer(new URL("https://" + url), bearertoken);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user