Package com.oracle.bmc.http.client
Enum Options
- java.lang.Object
-
- java.lang.Enum<Options>
-
- com.oracle.bmc.http.client.Options
-
- All Implemented Interfaces:
Serializable,Comparable<Options>
public enum Options extends Enum<Options>
Options that can be set to control the behavior of the OCI Java SDK.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleangetShouldAutoCloseResponseInputStream()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.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.static voidshouldAutoCloseResponseInputStream(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 defaultstatic OptionsvalueOf(String name)Returns the enum constant of this type with the specified name.static Options[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 nameNullPointerException- 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.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
-
-