Top Description Fields Constructors Methods
com.oracle.bmc.http.client

public final Enum Options

extends Enum<Options>
Class Inheritance

Options that can be set to control the behavior of the OCI Java SDK.

Field Summary

Modifier and TypeField and Description
private static final Logger
private static final String
private static volatile boolean

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static boolean

Returns:

true if the stream should be auto-closed
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.

public static boolean

Returns:

true if the client should use realm-specific endpoint template
getUseOfRealmSpecificEndpointTemplateByDefault
()

Returns the boolean indicating if the SDK should use realm-specific endpoint templates or not.

public static void
shouldAutoCloseResponseInputStream(final 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

public static Options
public static Options[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

LOGback to summary
private static final Logger LOG
OCI_REALM_SPECIFIC_SERVICE_ENDPOINT_TEMPLATE_ENABLED_ENV_VARback to summary
private static final String OCI_REALM_SPECIFIC_SERVICE_ENDPOINT_TEMPLATE_ENABLED_ENV_VAR
SHOULD_AUTO_CLOSE_RESPONSE_INPUTSTREAMback to summary
private static volatile boolean SHOULD_AUTO_CLOSE_RESPONSE_INPUTSTREAM

Constructor Detail

Optionsback to summary
private Options()

Method Detail

getShouldAutoCloseResponseInputStreamback to summary
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:boolean

true if the stream should be auto-closed

getUseOfRealmSpecificEndpointTemplateByDefaultback to summary
public static boolean getUseOfRealmSpecificEndpointTemplateByDefault()

Returns the boolean indicating if the SDK should use realm-specific endpoint templates or not.

Returns:boolean

true if the client should use realm-specific endpoint template

shouldAutoCloseResponseInputStreamback to summary
public static void shouldAutoCloseResponseInputStream(final 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

valueOfback to summary
public static Options valueOf(String name)
valuesback to summary
public static Options[] values()