Splitted code to use a function individually
This commit is contained in:
parent
2d295bf216
commit
e3de1aa426
|
@ -11,8 +11,13 @@ public abstract class ServiceInstance {
|
||||||
|
|
||||||
public static final String BASE_URL = "https://url.d4science.org";
|
public static final String BASE_URL = "https://url.d4science.org";
|
||||||
|
|
||||||
public static String getServiceURL() {
|
public static String getCurrentContextFullName() {
|
||||||
String context = SecretManagerProvider.instance.get().getContext();
|
String context = SecretManagerProvider.instance.get().getContext();
|
||||||
|
return context;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getServiceURL() {
|
||||||
|
String context = getCurrentContextFullName();
|
||||||
return getServiceURL(context);
|
return getServiceURL(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue