org.walluck.oscar.handlers
Class SNACHandler

java.lang.Object
  extended byorg.walluck.oscar.handlers.SNACHandler
Direct Known Subclasses:
AdminHandler, AdvertHandler, BOSHandler, BuddyListHandler, ChatHandler, ChatNavHandler, ICBMHandler, IconHandler, ICQHandler, InviteHandler, LocateHandler, LoginHandler, MailHandler, MiscHandler, ODirHandler, PopupHandler, ServiceHandler, SSIHandler, StatsHandler, TranslateHandler, UserLookupHandler

public abstract class SNACHandler
extends java.lang.Object

A SNAC is the basic communications unit that is exchanged between clients and servers. The SNAC handlers handle SNAC's.

Since:
1.0
Version:
1.0
Author:
David Walluck

Constructor Summary
SNACHandler()
           
 
Method Summary
 int getFamily()
          Get the value of family.
 int getVersion()
          Get the value of version.
abstract  void handleSNAC(AIMSession sess, SNACHandler handler, AIMFrame frame, SNAC snac, AIMInputStream buffer)
          Handles incoming SNAC's.
 void setFamily(int family)
          Set the value of family.
 void setVersion(int version)
          Set the value of version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SNACHandler

public SNACHandler()
Method Detail

handleSNAC

public abstract void handleSNAC(AIMSession sess,
                                SNACHandler handler,
                                AIMFrame frame,
                                SNAC snac,
                                AIMInputStream buffer)
                         throws java.io.IOException
Handles incoming SNAC's.

Parameters:
sess - the oscar session
handler - the handler
frame - the incoming frame
snac - the incoming SNAC
buffer - the incoming buffer
Throws:
java.io.IOException - if an error occurs

getFamily

public int getFamily()
Get the value of family.

Returns:
value of family.

setFamily

public void setFamily(int family)
Set the value of family.

Parameters:
family - Value to assign to family.

getVersion

public int getVersion()
Get the value of version.

Returns:
value of version.

setVersion

public void setVersion(int version)
Set the value of version.

Parameters:
version - Value to assign to version.