Package com.helger.phase4.http
Class AS4HttpDebug
java.lang.Object
com.helger.phase4.http.AS4HttpDebug
Turn on/off AS4 HTTP debug logging.
Note: this class will be replaced with something smarter in the future
Note: this class will be replaced with something smarter in the future
- Author:
- Philip Helger
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidDebug the provided string ifisEnabled().static com.helger.xml.serialize.write.IXMLWriterSettingsstatic booleanstatic voidsetEnabled(boolean bEnabled) Enable or disable
-
Field Details
-
DEFAULT_DEBUG
public static final boolean DEFAULT_DEBUG- See Also:
-
-
Method Details
-
setEnabled
public static void setEnabled(boolean bEnabled) Enable or disable- Parameters:
bEnabled-trueto enabled,falseto disable
-
isEnabled
public static boolean isEnabled()- Returns:
trueif enabled,falseif not.
-
debug
Debug the provided string ifisEnabled(). Uses the logger to log to the console- Parameters:
aMsg- The message supplier. May not benull. Invoked only ifisEnabled()
-
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.
-