Class ScopeUtil
- java.lang.Object
-
- org.gcube.datatransfer.resolver.util.ScopeUtil
-
public class ScopeUtil extends Object
The Class ScopeUtil.- Author:
- Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it) Nov 5, 2018
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Loggerloggerstatic StringSCOPE_SEPARATOR
-
Constructor Summary
Constructors Constructor Description ScopeUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetInfrastructureNameFromScope(String scope)Gets the infrastructure name from scope.static StringnormalizeScope(String scope, String replaceSepartor)Normalize scope.
-
-
-
Field Detail
-
SCOPE_SEPARATOR
public static final String SCOPE_SEPARATOR
- See Also:
- Constant Field Values
-
logger
public static final org.slf4j.Logger logger
-
-
Method Detail
-
normalizeScope
public static String normalizeScope(String scope, String replaceSepartor)
Normalize scope. Add the '/' as prefix and remove all input replaceSepartor- Parameters:
scope- the scopereplaceSepartor- the string to replace withSCOPE_SEPARATOR}- Returns:
- the normalized scope
-
-