Class ApacheUtils


  • public final class ApacheUtils
    extends Object
    Utility functions related to Apache
    • Constructor Detail

      • ApacheUtils

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