|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.walluck.oscar.handlers.SNACHandler
org.walluck.oscar.handlers.StatsHandler
public class StatsHandler
Family 0x000b - Statistics.
Stats can keep track of anything. These stats keep track of what advertisements are displayed and whether or not the user clicked on any of them. I wonder how the server decides to parse the stats. It must make use of the client information send during logon.
SNACHandler| Constructor Summary | |
|---|---|
StatsHandler()
Family 0x000b. |
|
| Method Summary | |
|---|---|
void |
handleSNAC(AIMSession sess,
SNACHandler handler,
AIMFrame frame,
SNAC snac,
AIMInputStream buffer)
Handles incoming SNAC's. |
void |
reportEvent(AIMSession sess,
AIMConnection conn,
ArrayList stats,
int type,
int id)
Report a stat event. |
void |
reportStats(AIMSession sess,
AIMConnection conn,
ArrayList stats,
boolean wantResponse)
Subtype 0x0002 - Report our stats to the server. |
| Methods inherited from class org.walluck.oscar.handlers.SNACHandler |
|---|
getFamily, getVersion, setFamily, setVersion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StatsHandler()
| Method Detail |
|---|
public void reportEvent(AIMSession sess,
AIMConnection conn,
ArrayList stats,
int type,
int id)
sess - the oscar sessionconn - the bos connection for this sessionstats - the stats vectortype - the type of statid - the stat ID
public void reportStats(AIMSession sess,
AIMConnection conn,
ArrayList stats,
boolean wantResponse)
throws IOException
sess - the oscar sessionconn - the bos connection for this sessionstats - the stats vectorwantResponse - whether or not you want a server ack (usually false)
IOException - if an error occurs
public void handleSNAC(AIMSession sess,
SNACHandler handler,
AIMFrame frame,
SNAC snac,
AIMInputStream buffer)
throws IOException
handleSNAC in class SNACHandlersess - the oscar sessionhandler - the handlerframe - the incoming framesnac - the incoming SNACbuffer - the incoming buffer
IOException - if an error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||