Class SLF4JSmackDebugger
- java.lang.Object
-
- org.jivesoftware.smack.debugger.SmackDebugger
-
- org.jivesoftware.smackx.debugger.slf4j.SLF4JSmackDebugger
-
public class SLF4JSmackDebugger extends SmackDebugger
Implementation of SmackDebugger that writes log messages using SLF4J API. Use in conjunction with your SLF4J bindings of choice. See SLF4J manual for more details about bindings usage.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringLOGGER_NAMEstatic java.util.concurrent.atomic.AtomicBooleanprintInterpretedstatic java.lang.StringRECEIVED_TAGstatic java.lang.StringSENT_TAG-
Fields inherited from class org.jivesoftware.smack.debugger.SmackDebugger
connection
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidenable()Makes Smack use this Debugger.voidincomingStreamSink(java.lang.CharSequence incomingCharSequence)voidonIncomingStreamElement(TopLevelStreamElement streamElement)Used by the connection to notify about an incoming top level stream element.voidonOutgoingStreamElement(TopLevelStreamElement streamElement)Used by the connection to notify about a outgoing top level stream element.voidoutgoingStreamSink(java.lang.CharSequence outgoingCharSequence)Note that the sequence of characters may be pretty printed.voiduserHasLogged(EntityFullJid user)Called when a user has logged in to the server.-
Methods inherited from class org.jivesoftware.smack.debugger.SmackDebugger
newConnectionReader, newConnectionWriter, onIncomingElementCompleted, onOutgoingElementCompleted
-
-
-
-
Field Detail
-
LOGGER_NAME
public static final java.lang.String LOGGER_NAME
- See Also:
- Constant Field Values
-
printInterpreted
public static final java.util.concurrent.atomic.AtomicBoolean printInterpreted
-
SENT_TAG
public static final java.lang.String SENT_TAG
- See Also:
- Constant Field Values
-
RECEIVED_TAG
public static final java.lang.String RECEIVED_TAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
enable
public static void enable()
Makes Smack use this Debugger.
-
outgoingStreamSink
public void outgoingStreamSink(java.lang.CharSequence outgoingCharSequence)
Description copied from class:SmackDebuggerNote that the sequence of characters may be pretty printed.- Specified by:
outgoingStreamSinkin classSmackDebugger- Parameters:
outgoingCharSequence- the outgoing character sequence.
-
incomingStreamSink
public void incomingStreamSink(java.lang.CharSequence incomingCharSequence)
- Specified by:
incomingStreamSinkin classSmackDebugger
-
userHasLogged
public void userHasLogged(EntityFullJid user)
Description copied from class:SmackDebuggerCalled 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:
userHasLoggedin classSmackDebugger- Parameters:
user- the user@host/resource that has just logged in
-
onIncomingStreamElement
public void onIncomingStreamElement(TopLevelStreamElement streamElement)
Description copied from class:SmackDebuggerUsed 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:
onIncomingStreamElementin classSmackDebugger- Parameters:
streamElement- the incoming top level stream element.
-
onOutgoingStreamElement
public void onOutgoingStreamElement(TopLevelStreamElement streamElement)
Description copied from class:SmackDebuggerUsed 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:
onOutgoingStreamElementin classSmackDebugger- Parameters:
streamElement- the outgoing top level stream element.
-
-