Class HttpRequestLogging

java.lang.Object
org.hawaiiframework.logging.http.client.HttpRequestLogging

public final class HttpRequestLogging extends Object
Utility class to suppress http request logging.
  • Method Details

    • suppress

      public static HttpRequestLoggingState suppress()
      Suppress logging.
      Returns:
      The auto closeable state.
    • suppress

      public static HttpRequestLoggingState suppress(boolean suppressed)
      Suppress logging. The suppressed can be used to wire suppression into calling code.
      Parameters:
      suppressed - Flag to allow configuration of suppression.
      Returns:
      The auto closeable state.
    • enable

      public static void enable()
      Enable logging.
    • isEnabled

      public static boolean isEnabled()
      Return true if the logging is enabled.
      Returns:
      true if the logging is enabled for this thread.
    • isSuppressed

      public static boolean isSuppressed()
      Return true if the logging is suppressed.
      Returns:
      true if the logging is suppressed for this thread.
    • clear

      public static void clear()
      Continue with normal logging.