public class SLF4JSmackDebugger extends java.lang.Object implements SmackDebugger
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LOGGER_NAME |
static java.util.concurrent.atomic.AtomicBoolean |
printInterpreted |
static java.lang.String |
RECEIVED_TAG |
static java.lang.String |
SENT_TAG |
| Constructor and Description |
|---|
SLF4JSmackDebugger(XMPPConnection connection,
java.io.Writer writer,
java.io.Reader reader)
Create new SLF4J Smack Debugger instance.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
enable()
Makes Smack use this Debugger.
|
java.io.Reader |
getReader()
Returns the special Reader that wraps the main Reader and logs data to the GUI.
|
StanzaListener |
getReaderListener()
Returns the thread that will listen for all incoming packets and write them to the GUI.
|
java.io.Writer |
getWriter()
Returns the special Writer that wraps the main Writer and logs data to the GUI.
|
StanzaListener |
getWriterListener()
Returns the thread that will listen for all outgoing packets and write them to the GUI.
|
java.io.Reader |
newConnectionReader(java.io.Reader newReader)
Returns a new special Reader that wraps the new connection Reader.
|
java.io.Writer |
newConnectionWriter(java.io.Writer newWriter)
Returns a new special Writer that wraps the new connection Writer.
|
void |
userHasLogged(org.jxmpp.jid.EntityFullJid user)
Called when a user has logged in to the server.
|
public static final java.lang.String LOGGER_NAME
public static final java.util.concurrent.atomic.AtomicBoolean printInterpreted
public static final java.lang.String SENT_TAG
public static final java.lang.String RECEIVED_TAG
public SLF4JSmackDebugger(XMPPConnection connection, java.io.Writer writer, java.io.Reader reader)
connection - Smack connection to debugwriter - connection data writer to observereader - connection data reader to observepublic static void enable()
public java.io.Reader newConnectionReader(java.io.Reader newReader)
SmackDebuggernewConnectionReader in interface SmackDebuggernewReader - connection reader.public java.io.Writer newConnectionWriter(java.io.Writer newWriter)
SmackDebuggernewConnectionWriter in interface SmackDebuggernewWriter - connection writer.public void userHasLogged(org.jxmpp.jid.EntityFullJid user)
SmackDebuggeruserHasLogged in interface SmackDebuggeruser - the user@host/resource that has just logged inpublic java.io.Reader getReader()
SmackDebuggergetReader in interface SmackDebuggerpublic java.io.Writer getWriter()
SmackDebuggergetWriter in interface SmackDebuggerpublic StanzaListener getReaderListener()
SmackDebuggergetReaderListener in interface SmackDebuggerpublic StanzaListener getWriterListener()
SmackDebuggergetWriterListener in interface SmackDebugger