org.walluck.oscar.handlers
Class MailHandler

java.lang.Object
  extended byorg.walluck.oscar.handlers.SNACHandler
      extended byorg.walluck.oscar.handlers.MailHandler

public class MailHandler
extends SNACHandler

Family 0x0018 - Email notification.

Used for being alerted when the email address(es) associated with your screen name get new electronic-m. For normal AIM accounts, you get the email address screenname@netscape.net. AOL accounts have screenname@aol.com, and can also activate a netscape.net account.

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

Constructor Summary
MailHandler()
          Family 0x0018.
 
Method Summary
 void activate(AIMSession sess)
          Subtype 0x0016 - Send something or other.
 void handleSNAC(AIMSession sess, SNACHandler handler, AIMFrame frame, SNAC snac, AIMInputStream buffer)
          Handles incoming SNAC's.
 void sendCookies(AIMSession sess)
          Subtype 0x0006 - Request information about your email account.
 
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

MailHandler

public MailHandler()
Family 0x0018.

Method Detail

sendCookies

public void sendCookies(AIMSession sess)
                 throws java.io.IOException
Subtype 0x0006 - Request information about your email account.

Parameters:
sess - the oscar session
Throws:
java.io.IOException - if an error occurs

activate

public void activate(AIMSession sess)
              throws java.io.IOException
Subtype 0x0016 - Send something or other.

Parameters:
sess - the oscar session
Throws:
java.io.IOException - if an error occurs

handleSNAC

public void handleSNAC(AIMSession sess,
                       SNACHandler handler,
                       AIMFrame frame,
                       SNAC snac,
                       AIMInputStream buffer)
                throws java.io.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:
java.io.IOException - if an error occurs