public class Utils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
INFRASTRUCTURE_ENV_VARIABLE_NAME |
static String |
URI_RESOLVER_RESOURCE_CATEGORY |
static String |
URI_RESOLVER_RESOURCE_NAME |
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkScopeProvider()
if the scope provider is not set then check if the env variable: SCOPE is set and set the scopeProvider
|
static String |
checkVarEnv(String name) |
static String |
extractInfrastructureNewVersion(String urlParam) |
static String |
getInfraFromResolverHost(String resolverHost) |
static String |
getResolverHost(org.gcube.common.resources.gcore.ServiceEndpoint serviceEndpoint) |
static ArrayList<String> |
getVOScopes(String scope) |
static boolean |
isScopeProviderMatch(String infraHost) |
static List<org.gcube.common.resources.gcore.ServiceEndpoint> |
queryServiceEndpoint(String category,
String name) |
static boolean |
validationScope2(String scope) |
public static final String INFRASTRUCTURE_ENV_VARIABLE_NAME
public static final String URI_RESOLVER_RESOURCE_CATEGORY
public static final String URI_RESOLVER_RESOURCE_NAME
public static boolean validationScope2(String scope)
public static String extractInfrastructureNewVersion(String urlParam)
public static boolean isScopeProviderMatch(String infraHost)
public static List<org.gcube.common.resources.gcore.ServiceEndpoint> queryServiceEndpoint(String category, String name)
public static void checkScopeProvider()
public static String getResolverHost(org.gcube.common.resources.gcore.ServiceEndpoint serviceEndpoint)
Copyright © 2020. All Rights Reserved.