|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.ou.kmi.buddyspace.core.BSLogger
BSLogger
class logs sent and received packets through given
connection and the connection state.
To listen to logs register your BSLogListener
by
addLogListener
.
Method Summary | |
void |
addLogListener(BSLogListener listener)
Adds BSLogListener to listeners for logging. |
protected ConnectionBean |
getConnection()
Returns currently used ConnectionBean |
void |
receivedPacket(PacketEvent pe)
PacketListener function - logs received packet |
void |
removeLogListener(BSLogListener listener)
Removes BSLogListener from listeners for logging. |
void |
sendFailed(PacketEvent pe)
PacketListener function - logs packet sent failure |
void |
sentPacket(PacketEvent pe)
PacketListener function - logs sent packet |
protected void |
setConnection(ConnectionBean connection)
Sets ConnectionBean |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
protected void setConnection(ConnectionBean connection)
ConnectionBean
protected ConnectionBean getConnection()
ConnectionBean
public void receivedPacket(PacketEvent pe)
public void sendFailed(PacketEvent pe)
public void sentPacket(PacketEvent pe)
public void addLogListener(BSLogListener listener)
BSLogListener
to listeners for logging.
#removeAuthListener
,
#fireLogStatus
,
#fireLogSentXML
,
#fireLogReceivedXML
public void removeLogListener(BSLogListener listener)
BSLogListener
from listeners for logging.
#addAuthListener
,
#fireLogStatus
,
#fireLogSentXML
,
#fireLogReceivedXML
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |