org.walluck.oscar.handlers
Class AdvertHandler

java.lang.Object
  extended by org.walluck.oscar.handlers.SNACHandler
      extended by org.walluck.oscar.handlers.AdvertHandler

public class AdvertHandler
extends SNACHandler

Family 0x0005 - Advertisements.

Since:
1.0
Version:
1.0
Author:
David Walluck
See Also:
SNACHandler

Constructor Summary
AdvertHandler()
          Family 0x0005.
 
Method Summary
 void handleSNAC(AIMSession sess, SNACHandler handler, AIMFrame frame, SNAC snac, AIMInputStream buffer)
          Handles incoming SNAC's.
 void requestAds(AIMSession sess, AIMConnection conn)
          Subtype 0x0002 - Request a block of ads.
 
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

AdvertHandler

public AdvertHandler()
Family 0x0005.

Method Detail

requestAds

public void requestAds(AIMSession sess,
                       AIMConnection conn)
                throws IOException
Subtype 0x0002 - Request a block of ads.

Parameters:
sess - the oscar session
conn - the bos connection for this session
Throws:
IOException - if an error occurs

handleSNAC

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

Specified by:
handleSNAC in class SNACHandler
Parameters:
sess - the oscar session
handler - the handler
frame - the incoming frame
snac - the incoming SNAC
buffer - the incoming buffer
Throws:
IOException - if an error occurs