org.walluck.oscar.components
Class Protocol

java.lang.Object
  extended byorg.walluck.oscar.components.Protocol
All Implemented Interfaces:
ICBMListener, Listener, LocateListener, LoginListener

public class Protocol
extends java.lang.Object
implements LocateListener, LoginListener, ICBMListener

Describe class Protocol here.

Since:
1.0
Version:
1.0
Author:
David Walluck

Constructor Summary
Protocol()
          Creates a new Protocol instance.
 
Method Summary
 void clientAutoresp(AIMSession sess, AIMFrame frame, int channel, java.lang.String sn, int reason)
          Describe clientAutoresp method here.
 void clientAutoresp(AIMSession sess, AIMFrame frame, int channel, java.lang.String sn, int reason, int state, java.lang.String msg)
          Describe clientAutoresp method here.
 void godDamnICQ(AIMSession sess, AIMFrame frame, java.lang.String unused)
          Describe godDamnICQ method here.
 void incomingIMCH1(AIMSession sess, AIMFrame frame, int channel, UserInfo userinfo, AOLIM args)
          Describe incomingIMCH1 method here.
 void incomingIMCH2(AIMSession sess, AIMFrame frame, int channel, UserInfo userinfo, IncomingIMCH2 args)
          Describe incomingIMCH2 method here.
 void incomingIMCH4(AIMSession sess, AIMFrame frame, int channel, UserInfo userinfo, IncomingIMCH4 args)
          Describe incomingIMCH4 method here.
 void keyParse(AIMSession sess, AIMFrame frame, java.lang.String keystr)
          Description of the Method
 void locateRights(AIMSession sess, AIMFrame frame, int maxsiglen)
          Describe locateRights method here.
 void missedCall(AIMSession sess, AIMFrame frame, int channel, UserInfo userinfo, int numMissed, int reason)
          Describe missedCall method here.
 void msgAck(AIMSession sess, AIMFrame frame, int type, java.lang.String sn)
          Describe msgAck method here.
 void newUIN(AIMSession sess, AIMFrame frame, int uin, int ip, int port)
          Describe newUIN method here.
 void outgoingIM(AIMSession sess, AIMFrame frame, int channel, java.lang.String sn, java.lang.String msg, int icbmflags, short flag1, short flag2)
          Describe outgoingIM method here.
 void paramInfo(AIMSession sess, AIMFrame frame, ICBMParams params)
          Describe paramInfo method here.
 void parse(AIMSession sess, AIMFrame frame, LoginResponseInfo info, int family, int subtype)
          Describe parse method here.
 void securID(AIMSession sess, AIMFrame frame)
          Describe securID method here.
 void typingNotification(AIMSession sess, AIMFrame frame, byte[] ck, short type, java.lang.String sn, short typing)
          Describe typingNotification method here.
 void userInfo(AIMSession sess, AIMFrame frame, UserInfo info, int infoType, java.lang.String textEncoding, java.lang.String text)
          Describe userInfo method here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Protocol

public Protocol()
Creates a new Protocol instance.

Method Detail

clientAutoresp

public void clientAutoresp(AIMSession sess,
                           AIMFrame frame,
                           int channel,
                           java.lang.String sn,
                           int reason)
Describe clientAutoresp method here.

Specified by:
clientAutoresp in interface ICBMListener
Parameters:
sess - an AIMSession value
frame - an AIMFrame value
channel - an int value
sn - a String value
reason - an int value

clientAutoresp

public void clientAutoresp(AIMSession sess,
                           AIMFrame frame,
                           int channel,
                           java.lang.String sn,
                           int reason,
                           int state,
                           java.lang.String msg)
Describe clientAutoresp method here.

Specified by:
clientAutoresp in interface ICBMListener
Parameters:
sess - an AIMSession value
frame - an AIMFrame value
channel - an int value
sn - a String value
reason - an int value
state - an int value
msg - a String value

godDamnICQ

public void godDamnICQ(AIMSession sess,
                       AIMFrame frame,
                       java.lang.String unused)
Describe godDamnICQ method here.

Specified by:
godDamnICQ in interface LoginListener
Parameters:
sess - an AIMSession value
frame - an AIMFrame value
unused - a String value

incomingIMCH1

public void incomingIMCH1(AIMSession sess,
                          AIMFrame frame,
                          int channel,
                          UserInfo userinfo,
                          AOLIM args)
Describe incomingIMCH1 method here.

Specified by:
incomingIMCH1 in interface ICBMListener
Parameters:
sess - an AIMSession value
frame - an AIMFrame value
channel - an int value
userinfo - an UserInfo value
args - an AOLIM value

incomingIMCH2

public void incomingIMCH2(AIMSession sess,
                          AIMFrame frame,
                          int channel,
                          UserInfo userinfo,
                          IncomingIMCH2 args)
Describe incomingIMCH2 method here.

Specified by:
incomingIMCH2 in interface ICBMListener
Parameters:
sess - an AIMSession value
frame - an AIMFrame value
channel - an int value
userinfo - an UserInfo value
args - an IncomingIMCH2 value

incomingIMCH4

public void incomingIMCH4(AIMSession sess,
                          AIMFrame frame,
                          int channel,
                          UserInfo userinfo,
                          IncomingIMCH4 args)
Describe incomingIMCH4 method here.

Specified by:
incomingIMCH4 in interface ICBMListener
Parameters:
sess - an AIMSession value
frame - an AIMFrame value
channel - an int value
userinfo - an UserInfo value
args - an IncomingIMCH4 value

keyParse

public void keyParse(AIMSession sess,
                     AIMFrame frame,
                     java.lang.String keystr)
Description of the Method

Specified by:
keyParse in interface LoginListener
Parameters:
sess - Description of the Parameter
frame - Description of the Parameter
keystr - Description of the Parameter

missedCall

public void missedCall(AIMSession sess,
                       AIMFrame frame,
                       int channel,
                       UserInfo userinfo,
                       int numMissed,
                       int reason)
Describe missedCall method here.

Specified by:
missedCall in interface ICBMListener
Parameters:
sess - an AIMSession value
frame - an AIMFrame value
channel - an int value
userinfo - an UserInfo value
numMissed - an int value
reason - an int value

msgAck

public void msgAck(AIMSession sess,
                   AIMFrame frame,
                   int type,
                   java.lang.String sn)
Describe msgAck method here.

Specified by:
msgAck in interface ICBMListener
Parameters:
sess - an AIMSession value
frame - an AIMFrame value
type - an int value
sn - a String value

newUIN

public void newUIN(AIMSession sess,
                   AIMFrame frame,
                   int uin,
                   int ip,
                   int port)
Describe newUIN method here.

Specified by:
newUIN in interface LoginListener
Parameters:
sess - an AIMSession value
frame - an AIMFrame value
uin - an int value
ip - an int value
port - an int value

securID

public void securID(AIMSession sess,
                    AIMFrame frame)
Describe securID method here.

Specified by:
securID in interface LoginListener
Parameters:
sess - an AIMSession value
frame - an AIMFrame value

outgoingIM

public void outgoingIM(AIMSession sess,
                       AIMFrame frame,
                       int channel,
                       java.lang.String sn,
                       java.lang.String msg,
                       int icbmflags,
                       short flag1,
                       short flag2)
Describe outgoingIM method here.

Specified by:
outgoingIM in interface ICBMListener
Parameters:
sess - an AIMSession value
frame - an AIMFrame value
channel - an int value
sn - a String value
msg - a String value
icbmflags - an int value
flag1 - a short value
flag2 - a short value

paramInfo

public void paramInfo(AIMSession sess,
                      AIMFrame frame,
                      ICBMParams params)
Describe paramInfo method here.

Specified by:
paramInfo in interface ICBMListener
Parameters:
sess - an AIMSession value
frame - an AIMFrame value
params - an ICBMParams value

parse

public void parse(AIMSession sess,
                  AIMFrame frame,
                  LoginResponseInfo info,
                  int family,
                  int subtype)
Describe parse method here.

Specified by:
parse in interface LoginListener
Parameters:
sess - an AIMSession value
frame - an AIMFrame value
info - a LoginResponseInfo value
family - an int value
subtype - an int value

typingNotification

public void typingNotification(AIMSession sess,
                               AIMFrame frame,
                               byte[] ck,
                               short type,
                               java.lang.String sn,
                               short typing)
Describe typingNotification method here.

Specified by:
typingNotification in interface ICBMListener
Parameters:
sess - an AIMSession value
frame - an AIMFrame value
ck - a byte[] value
type - a short value
sn - a String value
typing - a short value

locateRights

public void locateRights(AIMSession sess,
                         AIMFrame frame,
                         int maxsiglen)
Describe locateRights method here.

Specified by:
locateRights in interface LocateListener
Parameters:
sess - an AIMSession value
frame - an AIMFrame value
maxsiglen - an int value

userInfo

public void userInfo(AIMSession sess,
                     AIMFrame frame,
                     UserInfo info,
                     int infoType,
                     java.lang.String textEncoding,
                     java.lang.String text)
Describe userInfo method here.

Specified by:
userInfo in interface LocateListener
Parameters:
sess - an AIMSession value
frame - an AIMFrame value
info - an UserInfo value
infoType - an int value
textEncoding - a String value
text - a String value