Class AS4HttpDebug

java.lang.Object
com.helger.phase4.http.AS4HttpDebug

@ThreadSafe public final class AS4HttpDebug extends Object
Turn on/off AS4 HTTP debug logging.
Note: this class will be replaced with something smarter in the future
Author:
Philip Helger
  • Field Details

  • Method Details

    • setEnabled

      public static void setEnabled(boolean bEnabled)
      Enable or disable
      Parameters:
      bEnabled - true to enabled, false to disable
    • isEnabled

      public static boolean isEnabled()
      Returns:
      true if enabled, false if not.
    • debug

      public static void debug(@Nonnull Supplier<? super String> aMsg)
      Debug the provided string if isEnabled(). Uses the logger to log to the console
      Parameters:
      aMsg - The message supplier. May not be null. Invoked only if isEnabled()
    • getDebugXMLWriterSettings

      @Nonnull public static com.helger.xml.serialize.write.IXMLWriterSettings getDebugXMLWriterSettings()
      Returns:
      XML writer setting to debug XML documents. It uses formatting and a predefined namespace context. Never null.