org.walluck.oscar.handlers
Class UserLookupHandler

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

public class UserLookupHandler
extends SNACHandler

Family 0x000a - User Search.

TODO: Add searchName.

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

Constructor Summary
UserLookupHandler()
          Family 0x000a
 
Method Summary
 void handleSNAC(AIMSession sess, SNACHandler handler, AIMFrame frame, SNAC snac, AIMInputStream buffer)
          Handles incoming SNAC's.
 void userSearchAddress(AIMSession sess, AIMConnection conn, String email)
          Subtype 0x0002 - Search for a user by email address.
 
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

UserLookupHandler

public UserLookupHandler()
Family 0x000a

Method Detail

userSearchAddress

public void userSearchAddress(AIMSession sess,
                              AIMConnection conn,
                              String email)
                       throws IOException
Subtype 0x0002 - Search for a user by email address.

Parameters:
sess - the oscar session
conn - the odir connection for this session
email - the user's email
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