public interface XmppDebugger
A debugger interface, which allows to implement custom debugger implementation to log XMPP traffic.
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
createInputStream(java.io.InputStream inputStream)
Creates a new input stream from the actual input stream.
|
java.io.OutputStream |
createOutputStream(java.io.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(java.lang.String xml,
java.lang.Object streamElement)
This method is called, whenever a stream element is read.
|
void |
writeStanza(java.lang.String xml,
java.lang.Object streamElement)
This method is called, whenever a stream element is written.
|
void initialize(XmppSession xmppSession)
This method is called when a new XMPP session is initialized.
xmppSession
- The XMPP session.void writeStanza(java.lang.String xml, java.lang.Object streamElement)
This method is called, whenever a stream element is written.
xml
- The xml representation of the stream element.streamElement
- The stream element. Maybe null, if no stream element, but an opening or closing stream element is written.void readStanza(java.lang.String xml, java.lang.Object streamElement)
This method is called, whenever a stream element is read.
xml
- The xml representation of the stream element.streamElement
- The stream element. Maybe null, if no stream element, but an opening or closing stream element is read.java.io.OutputStream createOutputStream(java.io.OutputStream outputStream)
Creates a new output stream from the actual output stream. This is useful is you want to log the actually written bytes. In this case you could fork the output stream and return the new forked stream.
outputStream
- The actual output stream.java.io.InputStream createInputStream(java.io.InputStream inputStream)
Creates a new input stream from the actual input stream. This is useful is you want to log the actually read bytes. In this case you could fork the input stream and return the new forked stream.
inputStream
- The actual input stream.Copyright © 2014–2019 XMPP.rocks. All rights reserved.