Package org.azd.abstractions.internals
Class LocationService
java.lang.Object
org.azd.abstractions.internals.LocationService
Determines the Api location based on location url, area and resource id.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidclearCache(AccessTokenCredential credential) static LocationServicegetInstance(AccessTokenCredential accessTokenCredential) Get the instance of location service.getLocation(String locationUrl, String area, String locationId) Get the location details for given url, area and location id.static booleanstatic voidsetCacheEnabled(boolean enabled)
-
Method Details
-
getInstance
Get the instance of location service.- Parameters:
accessTokenCredential- Access token credential object.- Returns:
- LocationService object
LocationService.
-
setCacheEnabled
public static void setCacheEnabled(boolean enabled) -
isCacheEnabled
public static boolean isCacheEnabled() -
clearCache
public static void clearCache() -
clearCache
-
getLocation
Get the location details for given url, area and location id.- Parameters:
locationUrl- Base url of the location. For e.g, https://dev.azure.com/{organisation}area- Specify the area i.e., release, git etc.locationId- GUID of the location.- Returns:
- Api location object
ApiLocation.
-