Package com.oracle.bmc.http
Class ApacheUtils
- java.lang.Object
-
- com.oracle.bmc.http.ApacheUtils
-
public final class ApacheUtils extends Object
Utility functions related to Apache
-
-
Constructor Summary
Constructors Constructor Description ApacheUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ApacheConnectionClosingStrategygetApacheConnectionClosingStrategy(ClientConfigurator clientConfigurator)Determines the closing strategy used by the Apache connectorstatic booleangetApacheConnectionExpectContinue(ClientConfigurator clientConfigurator)Determines the expect 100 continue setting used by the Apache connectorstatic StringgetStreamWarningMessage(String clientName, String operationNames)Gets the stream warning message to warn the users about closing the streamstatic booleanisExtraStreamLogsEnabled()static booleanisNonBufferingClientConfigurator(ClientConfigurator clientConfigurator)Determines if the client should buffer entities
-
-
-
Method Detail
-
isNonBufferingClientConfigurator
public static boolean isNonBufferingClientConfigurator(ClientConfigurator clientConfigurator)
Determines if the client should buffer entities- Parameters:
clientConfigurator-- Returns:
- isNonBufferingApacheClient boolean value indicating if the client should buffer in memory
-
getApacheConnectionClosingStrategy
public static ApacheConnectionClosingStrategy getApacheConnectionClosingStrategy(ClientConfigurator clientConfigurator)
Determines the closing strategy used by the Apache connector- Parameters:
clientConfigurator- client configurator used to configure the client- Returns:
- closingStrategy representing the Apache Connector closing strategy
-
getApacheConnectionExpectContinue
public static boolean getApacheConnectionExpectContinue(ClientConfigurator clientConfigurator)
Determines the expect 100 continue setting used by the Apache connector- Parameters:
clientConfigurator- client configurator used to configure the client- Returns:
- true if expect 100 continue is enabled
-
getStreamWarningMessage
public static String getStreamWarningMessage(String clientName, String operationNames)
Gets the stream warning message to warn the users about closing the stream
-
isExtraStreamLogsEnabled
public static boolean isExtraStreamLogsEnabled()
-
-