Package com.oracle.bmc.util
Class RealmSpecificEndpointTemplateUtils
- java.lang.Object
-
- com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils
-
public class RealmSpecificEndpointTemplateUtils extends Object
Utility class for working with realm-specific endpoint templates.This class provides methods for determining whether realm-specific endpoints are enabled for a client and for manipulating the endpoint templates that are specific to a particular realm.
-
-
Constructor Summary
Constructors Constructor Description RealmSpecificEndpointTemplateUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled, String regionId, Service service)This method is called when use of realm-specific endpoint template is enabled.static booleangetUseOfRealmSpecificEndpointTemplateByDefault()Returns the boolean indicating if the SDK should use realm-specific endpoint templates or not.static BooleangetUseOfRealmSpecificEndpointTemplateEnabledProgrammatically()Get the programmatic flag for whether realm-specific endpoints are enabled.static voidsetUseOfRealmSpecificEndpointTemplateEnabledProgrammatically(Boolean useOfRealmSpecificEndpointTemplateEnabledProgrammatically)Set the programmatic flag for whether realm-specific endpoints are enabled.
-
-
-
Method Detail
-
getUseOfRealmSpecificEndpointTemplateByDefault
public static boolean getUseOfRealmSpecificEndpointTemplateByDefault()
Returns the boolean indicating if the SDK should use realm-specific endpoint templates or not.- Returns:
- true if the client should use realm-specific endpoint template
-
getRealmSpecificEndpointTemplate
public static String getRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled, String regionId, Service service)
This method is called when use of realm-specific endpoint template is enabled.- Parameters:
regionId-- Returns:
- Realm-specific endpoint template
-
getUseOfRealmSpecificEndpointTemplateEnabledProgrammatically
public static Boolean getUseOfRealmSpecificEndpointTemplateEnabledProgrammatically()
Get the programmatic flag for whether realm-specific endpoints are enabled.nullmeans use the environment variable instead.- Returns:
- status of the programmatic flag for whether realm-specific endpoints are enabled
-
setUseOfRealmSpecificEndpointTemplateEnabledProgrammatically
public static void setUseOfRealmSpecificEndpointTemplateEnabledProgrammatically(Boolean useOfRealmSpecificEndpointTemplateEnabledProgrammatically)
Set the programmatic flag for whether realm-specific endpoints are enabled.nullmeans use environment variable instead.- Parameters:
useOfRealmSpecificEndpointTemplateEnabledProgrammatically- programmatic flag
-
-