public final class ConsoleDebugger extends Object implements XmppDebugger
System.out to print XMPP traffic.| Constructor and Description |
|---|
ConsoleDebugger() |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
createInputStream(InputStream inputStream)
Creates a new input stream from the actual input stream.
|
OutputStream |
createOutputStream(OutputStream outputStream)
Creates a new output stream from the actual output stream.
|
void |
initialize(XmppSession xmppSession)
This method is called when a new XMPP session is initialized.
|
void |
readStanza(String xml,
Object stanza)
This method is called, whenever a stream element is read.
|
void |
writeStanza(String xml,
Object stanza)
This method is called, whenever a stream element is written.
|
public void initialize(XmppSession xmppSession)
XmppDebuggerinitialize in interface XmppDebuggerxmppSession - The XMPP session.public void writeStanza(String xml, Object stanza)
XmppDebuggerwriteStanza in interface XmppDebuggerxml - The xml representation of the stream element.stanza - The stream element. Maybe null, if no stream element, but an opening or closing stream element is written.public void readStanza(String xml, Object stanza)
XmppDebuggerreadStanza in interface XmppDebuggerxml - The xml representation of the stream element.stanza - The stream element. Maybe null, if no stream element, but an opening or closing stream element is read.public OutputStream createOutputStream(OutputStream outputStream)
XmppDebuggercreateOutputStream in interface XmppDebuggeroutputStream - The actual output stream.public InputStream createInputStream(InputStream inputStream)
XmppDebuggercreateInputStream in interface XmppDebuggerinputStream - The actual input stream.Copyright © 2014–2017 XMPP.rocks. All rights reserved.