Class 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 Detail

      • RealmSpecificEndpointTemplateUtils

        public RealmSpecificEndpointTemplateUtils()
    • 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.

        null means 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.

        null means use environment variable instead.

        Parameters:
        useOfRealmSpecificEndpointTemplateEnabledProgrammatically - programmatic flag