Enum Options

    • Method Detail

      • values

        public static Options[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Options c : Options.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Options valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • shouldAutoCloseResponseInputStream

        public static void shouldAutoCloseResponseInputStream​(boolean shouldAutoClose)
        Sets the boolean value to indicate if the SDK should auto-close the InputStream stream returned from the response once the stream has been read until the content-length of the stream Note : This has been added to automatically release connections from the connection pool when using the Apache Connector since the Apache Connector uses connection pooling by default
      • getShouldAutoCloseResponseInputStream

        public static boolean getShouldAutoCloseResponseInputStream()
        Returns the boolean indicating if the SDK should auto-close the InputStream returned from the response once the stream has been read until the content-length of the stream.
        Returns:
        true if the stream should be auto-closed
      • getUseOfRealmSpecificEndpointTemplateByDefault

        public static boolean getUseOfRealmSpecificEndpointTemplateByDefault()
        Returns the boolean indicating if the SDK should use realm-specific endpoint templates or not.

        Enabling or disabling programmatically takes precedence over the environment variable.

        Returns:
        true if the client should use 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