|
Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SmackDebugger
Interface that allows for implementing classes to debug XML traffic. That is a GUI window that displays XML traffic.
Every implementation of this interface must have a public constructor with the following arguments: Connection, Writer, Reader.
| Method Summary | |
|---|---|
Reader |
getReader()
Returns the special Reader that wraps the main Reader and logs data to the GUI. |
PacketListener |
getReaderListener()
Returns the thread that will listen for all incoming packets and write them to the GUI. |
Writer |
getWriter()
Returns the special Writer that wraps the main Writer and logs data to the GUI. |
PacketListener |
getWriterListener()
Returns the thread that will listen for all outgoing packets and write them to the GUI. |
Reader |
newConnectionReader(Reader reader)
Returns a new special Reader that wraps the new connection Reader. |
Writer |
newConnectionWriter(Writer writer)
Returns a new special Writer that wraps the new connection Writer. |
void |
userHasLogged(String user)
Called when a user has logged in to the server. |
| Method Detail |
|---|
void userHasLogged(String user)
user - the user@host/resource that has just logged inReader getReader()
Writer getWriter()
Reader newConnectionReader(Reader reader)
Writer newConnectionWriter(Writer writer)
PacketListener getReaderListener()
PacketListener getWriterListener()
|
Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||