Splitted code to use a function individually

This commit is contained in:
Luca Frosini 2023-02-09 17:01:59 +01:00
parent 2d295bf216
commit e3de1aa426
1 changed files with 6 additions and 1 deletions

View File

@ -11,8 +11,13 @@ public abstract class ServiceInstance {
public static final String BASE_URL = "https://url.d4science.org";
public static String getServiceURL() {
public static String getCurrentContextFullName() {
String context = SecretManagerProvider.instance.get().getContext();
return context;
}
public static String getServiceURL() {
String context = getCurrentContextFullName();
return getServiceURL(context);
}