org.walluck.oscar.handlers
Class AdvertHandler
java.lang.Object
org.walluck.oscar.handlers.SNACHandler
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AdvertHandler
public AdvertHandler()
- Family 0x0005.
requestAds
public void requestAds(AIMSession sess,
AIMConnection conn)
throws IOException
- Subtype 0x0002 - Request a block of ads.
- Parameters:
sess
- the oscar sessionconn
- 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 sessionhandler
- the handlerframe
- the incoming framesnac
- the incoming SNACbuffer
- the incoming buffer
- Throws:
IOException
- if an error occurs