Package org.jivesoftware.smack.debugger
Class AbstractDebugger
java.lang.Object
org.jivesoftware.smack.debugger.SmackDebugger
org.jivesoftware.smack.debugger.AbstractDebugger
- Direct Known Subclasses:
JulDebugger,SimpleAbstractDebugger
-
Field Summary
FieldsFields inherited from class org.jivesoftware.smack.debugger.SmackDebugger
connection -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidincomingStreamSink(CharSequence incomingCharSequence) protected abstract voidprotected abstract voidvoidonIncomingStreamElement(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(CharSequence outgoingCharSequence) Note that the sequence of characters may be pretty printed.voiduserHasLogged(org.jxmpp.jid.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 Details
-
printInterpreted
public static boolean printInterpreted
-
-
Constructor Details
-
AbstractDebugger
-
-
Method Details
-
log
-
log
-
outgoingStreamSink
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
- Specified by:
incomingStreamSinkin classSmackDebugger
-
userHasLogged
public void userHasLogged(org.jxmpp.jid.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
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
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.
-