Class AbstractDebugger

java.lang.Object
org.jivesoftware.smack.debugger.SmackDebugger
org.jivesoftware.smack.debugger.AbstractDebugger
Direct Known Subclasses:
ConsoleDebugger, JulDebugger

public abstract class AbstractDebugger extends SmackDebugger
  • Field Details

    • printInterpreted

      public static boolean printInterpreted
  • Constructor Details

    • AbstractDebugger

      public AbstractDebugger(XMPPConnection connection)
  • Method Details

    • log

      protected abstract void log(String logMessage)
    • log

      protected abstract void log(String logMessage, Throwable throwable)
    • outgoingStreamSink

      public final void outgoingStreamSink(CharSequence outgoingCharSequence)
      Description copied from class: SmackDebugger
      Note that the sequence of characters may be pretty printed.
      Specified by:
      outgoingStreamSink in class SmackDebugger
      Parameters:
      outgoingCharSequence - the outgoing character sequence.
    • incomingStreamSink

      public final void incomingStreamSink(CharSequence incomingCharSequence)
      Specified by:
      incomingStreamSink in class SmackDebugger
    • userHasLogged

      public void userHasLogged(org.jxmpp.jid.EntityFullJid user)
      Description copied from class: SmackDebugger
      Called when a user has logged in to the server. The user could be an anonymous user, this means that the user would be of the form host/resource instead of the form user@host/resource.
      Specified by:
      userHasLogged in class SmackDebugger
      Parameters:
      user - the user@host/resource that has just logged in
    • onIncomingStreamElement

      public void onIncomingStreamElement(TopLevelStreamElement streamElement)
      Description copied from class: SmackDebugger
      Used by the connection to notify about an incoming top level stream element.

      This method is invoked right after the incoming stream was parsed.

      Specified by:
      onIncomingStreamElement in class SmackDebugger
      Parameters:
      streamElement - the incoming top level stream element.
    • onOutgoingStreamElement

      public void onOutgoingStreamElement(TopLevelStreamElement streamElement)
      Description copied from class: SmackDebugger
      Used by the connection to notify about a outgoing top level stream element.

      This method is invoked right before the element is serialized to XML and put into the outgoing stream.

      Specified by:
      onOutgoingStreamElement in class SmackDebugger
      Parameters:
      streamElement - the outgoing top level stream element.