Reoganized code
This commit is contained in:
parent
15140318ea
commit
2b3ffcaf50
|
@ -14,12 +14,6 @@ import org.slf4j.LoggerFactory;
|
||||||
public class ResourceRegistryContextClientFactory {
|
public class ResourceRegistryContextClientFactory {
|
||||||
|
|
||||||
private static final Logger logger = LoggerFactory.getLogger(ResourceRegistryContextClientFactory.class);
|
private static final Logger logger = LoggerFactory.getLogger(ResourceRegistryContextClientFactory.class);
|
||||||
|
|
||||||
private static String FORCED_URL = null;
|
|
||||||
|
|
||||||
protected static void forceToURL(String url){
|
|
||||||
FORCED_URL = url;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static String getCurrentContextFullName() {
|
public static String getCurrentContextFullName() {
|
||||||
String token = SecurityTokenProvider.instance.get();
|
String token = SecurityTokenProvider.instance.get();
|
||||||
|
@ -32,6 +26,12 @@ public class ResourceRegistryContextClientFactory {
|
||||||
return authorizationEntry.getContext();
|
return authorizationEntry.getContext();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static String FORCED_URL = null;
|
||||||
|
|
||||||
|
protected static void forceToURL(String url){
|
||||||
|
FORCED_URL = url;
|
||||||
|
}
|
||||||
|
|
||||||
public static ResourceRegistryContextClient create() {
|
public static ResourceRegistryContextClient create() {
|
||||||
String address = null;
|
String address = null;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue