Class SmackConfiguration

  • public final class SmackConfiguration
    extends java.lang.Object
    Represents the configuration of Smack. The configuration is used for:
    • Initializing classes by loading them at start-up.
    • Getting the current Smack version.
    • Getting and setting global library behavior, such as the period of time to wait for replies to packets from the server. Note: setting these values via the API will override settings in the configuration file.
    Configuration settings are stored in org.jivesoftware.smack/smack-config.xml.
    • Field Detail

      • SMACK_URL

        public static final SMACK_URL
      • DEBUG

        public static boolean DEBUG
        Value that indicates whether debugging is enabled. When enabled, a debug window will appear for each new connection that will contain the following information:
        • Client Traffic -- raw XML traffic generated by Smack and sent to the server.
        • Server Traffic -- raw XML traffic sent by the server to the client.
        • Interpreted Packets -- shows XML packets from the server as parsed by Smack.
        Debugging can be enabled by setting this field to true, or by setting the Java system property smack.debugEnabled to true. The system property can be set on the command line such as "java SomeApp -Dsmack.debugEnabled=true".

        public static boolean TRUELY_ASYNC_SENDS
        If enabled, causes AbstractXMPPConnection to create a thread for every asynchronous send operation. This is meant to work-around a shortcoming of Smack 4.4, where certain send operations are not asynchronous even if they should be. This is an expert setting, do not toggle if you do not understand the consequences or have been told to do so. Note that it is expected that this will not be needed in future Smack versions.